TaxonomyOrigin class

A JSON-serializable version of an Origin taxonomy result.

See OpenFoodAPIClient.getTaxonomy for more details on how to retrieve one of these.

Inheritance
Annotations
  • @JsonSerializable()

Constructors

TaxonomyOrigin()
TaxonomyOrigin.fromJson(Map<String, dynamic> json)
factory

Properties

children List<String>?
Children of the origin (like, Aquitaine is a child of France).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name Map<OpenFoodFactsLanguage, String>?
Standard localized name of the origin (e.g., 'Italy' in English).
getter/setter pair
parents List<String>?
Parents of the origin (like, France is the parent of Aquitaine).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
synonyms Map<OpenFoodFactsLanguage, List<String>>?
Localized synonyms of the name of the origin.
getter/setter pair

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.
override
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