ProductNutritionExtension extension

Nutrition facts of a Product: the packaging values, as sold.

on

Properties

hasNoNutritionData → bool

Available on Product, provided by the ProductNutritionExtension extension

no setter
hasNutritionData → bool

Available on Product, provided by the ProductNutritionExtension extension

no setter

Methods

getNutrientValue(Nutrient nutrient, PerSize perSize) → NutritionValue?

Available on Product, provided by the ProductNutritionExtension extension

Returns the value and unit of nutrient for perSize, or null.
getNutritionValues(PerSize perSize) → Map<Nutrient, NutritionValue>

Available on Product, provided by the ProductNutritionExtension extension

Returns the packaging as sold values for perSize.