TaxonomyLabelQueryConfiguration class
- Inheritance
-
- Object
- TaxonomyQueryConfiguration<
TaxonomyLabel, TaxonomyLabelField> - TaxonomyLabelQueryConfiguration
Constructors
-
TaxonomyLabelQueryConfiguration({required List<
String> tags, List<OpenFoodFactsLanguage> ? languages, OpenFoodFactsCountry? country, List<TaxonomyLabelField> fields = const [], List<Parameter> additionalParameters = const []}) -
TaxonomyLabelQueryConfiguration.roots({List<
OpenFoodFactsLanguage> ? languages, OpenFoodFactsCountry? country, List<TaxonomyLabelField> fields = const [], List<Parameter> additionalParameters = const []})
Properties
-
additionalParameters
→ List<
Parameter> -
Additional parameters to add the to query.
finalinherited
- country → OpenFoodFactsCountry?
-
The country for this query, if any.
finalinherited
-
fields
→ List<
TaxonomyLabelField> -
The desired taxonomy fields to retrieve. If empty, retrieve all fields.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ignoredFields
→ Set<
TaxonomyLabelField> -
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
-
The tags to request.
finalinherited
- tagType → TagType
-
The type of tags that this query should request a taxonomy for.
finalinherited
Methods
-
convertFieldsToStrings(
Iterable< TaxonomyLabelField> fields) → Iterable<String> -
Converts the given list of fields to their corresponding query string
values.
override
-
convertResults(
dynamic jsonData) → Map< String, TaxonomyLabel> -
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) → 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