OrderedNutrients class

Nutrients, as hierarchically ordered and localized entities.

cf. https://github.com/openfoodfacts/openfoodfacts-dart/issues/210 Example in https://fr.openfoodfacts.org/cgi/nutrients.pl Compared to OrderedNutrient, this is the root of the structure.

Inheritance
Annotations
  • @JsonSerializable()

Constructors

OrderedNutrients({required List<OrderedNutrient> nutrients})
OrderedNutrients.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
nutrients List<OrderedNutrient>
Most important nutrients (level 0 in the hierarchy)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toData() Map<String, String>
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited
toValueString() String
Returns all values as a String separated by a hyphen value1 - value2 - value3
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited