TaxonomyAdditiveQueryConfiguration class

Configuration to get additives

Inheritance

Constructors

TaxonomyAdditiveQueryConfiguration({required List<String> tags, List<OpenFoodFactsLanguage>? languages, OpenFoodFactsCountry? country, List<TaxonomyAdditiveField> fields = const [], List<Parameter> additionalParameters = const []})
Configuration to get additives from their tags
TaxonomyAdditiveQueryConfiguration.roots({List<OpenFoodFactsLanguage>? languages, OpenFoodFactsCountry? country, bool includeChildren = false, List<TaxonomyAdditiveField> fields = const [], List<Parameter> additionalParameters = const []})
Configuration to get the root additives

Properties

additionalParameters → List<Parameter>
Additional parameters to add the to query.
finalinherited
country → OpenFoodFactsCountry?
The country for this query, if any.
finalinherited
fields → List<TaxonomyAdditiveField>
The desired taxonomy fields to retrieve. If empty, retrieve all fields.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
ignoredFields → Set<TaxonomyAdditiveField>
Returns the set of fields to ignore if specified in the fields parameter.
no setteroverride
includeChildren → bool
If true, include the children of the requested tag in the results.
finalinherited
languages → List<OpenFoodFactsLanguage>
The languages field should be used to set the desired taxonomy language(s) when a taxonomy is requested with fields in one or more languages. The taxonomy's text fields should be filled with the requested languages in a prioritized manner based on the order supplied.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags → List<String>
The tags to request.
finalinherited
tagType → TagType
The type of tags that this query should request a taxonomy for.
finalinherited

Methods

convertFieldsToStrings(Iterable<TaxonomyAdditiveField> fields) → Iterable<String>
Converts the given list of fields to their corresponding query string values.
override
convertResults(dynamic jsonData) → Map<String, TaxonomyAdditive>
Creates a map of the correct taxonomy type from the raw JSON data.
override
getParametersMap() → Map<String, String>
Returns the corresponding API URI parameter map, including additionalParameters.
inherited
getPostUri(UriProductHelper uriHelper, {ApiVersion version = defaultVersion}) → Uri
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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