nutritionData property

  1. @JsonKey(name: 'nutrition_data', toJson: JsonHelper.checkboxToJSON, fromJson: JsonHelper.checkboxFromJSON)
bool? nutritionData
getter/setter pair

Is the "nutrition data for product as sold" in the nutriment fields?

Most of the time, it will be true, e.g. if we type in nutrient data reading the product packaging.

Implementation

@JsonKey(
  name: 'nutrition_data',
  toJson: JsonHelper.checkboxToJSON,
  fromJson: JsonHelper.checkboxFromJSON,
)
bool? nutritionData;