TaxonomyPackagingRecyclingQueryConfiguration class
Configuration for packaging recycling API query.
- Inheritance
-
- Object
- TaxonomyQueryConfiguration<
TaxonomyPackagingRecycling, TaxonomyPackagingRecyclingField> - TaxonomyPackagingRecyclingQueryConfiguration
Constructors
-
TaxonomyPackagingRecyclingQueryConfiguration({required List<
String> tags, List<OpenFoodFactsLanguage> ? languages, OpenFoodFactsCountry? country, List<TaxonomyPackagingRecyclingField> fields = const [], List<Parameter> additionalParameters = const [], bool includeChildren = false}) -
Configuration to get the packaging recycling that match the
tags
. -
TaxonomyPackagingRecyclingQueryConfiguration.roots({List<
OpenFoodFactsLanguage> ? languages, OpenFoodFactsCountry? country, List<TaxonomyPackagingRecyclingField> fields = const [], List<Parameter> additionalParameters = const [], bool includeChildren = false})
Properties
-
additionalParameters
→ List<
Parameter> -
Additional parameters to add the to query.
finalinherited
- country → OpenFoodFactsCountry?
-
The country for this query, if any.
finalinherited
-
fields
→ List<
TaxonomyPackagingRecyclingField> -
The desired taxonomy fields to retrieve. If empty, retrieve all fields.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ignoredFields
→ Set<
TaxonomyPackagingRecyclingField> -
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< TaxonomyPackagingRecyclingField> fields) → Iterable<String> -
Converts the given list of fields to their corresponding query string
values.
override
-
convertResults(
dynamic jsonData) → Map< String, TaxonomyPackagingRecycling> -
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(
[QueryType? queryType]) → Uri -
inherited
-
getUri(
[QueryType? queryType]) → 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