Open CharlesNepote opened 1 week ago
@CharlesNepote In the dart code we don't compute anything related to nutrients, like energy or sodium.
We can unset a nutrient value by setting explicitly a null
value.
I've just managed to
null
(nutriments.setValue(Nutrient.energyKJ, perSize, null);
)1
(now on the server, kcal=1, kj=null)1
(now on the server, kcal=1, kj=1)Don't know if that answers all your questions.
Copy/pasting a discussion with a user of the dart package: Me:
Them: "For 1 & 2, how should we go about resetting kJ? From the data quality report it seemed like our prior approach of not including kJ in the payload does not reset it. Does sending an explicit null in the dart SDK reset it?"