TaxonomyPackagingMaterialQueryConfiguration class

Configuration for packaging materials API query.

Constructors

TaxonomyPackagingMaterialQueryConfiguration({required List<String> tags, List<OpenFoodFactsLanguage>? languages, OpenFoodFactsCountry? country, List<TaxonomyPackagingMaterialField> fields = const [], List<Parameter> additionalParameters = const [], bool includeChildren = false})
Configuration to get the packaging materials that match the tags.
TaxonomyPackagingMaterialQueryConfiguration.roots({List<OpenFoodFactsLanguage>? languages, OpenFoodFactsCountry? country, List<TaxonomyPackagingMaterialField> 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<TaxonomyPackagingMaterialField>
The desired taxonomy fields to retrieve. If empty, retrieve all fields.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
ignoredFields Set<TaxonomyPackagingMaterialField>
Returns the set of fields to ignore if specified in the fields parameter.
no setter
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<TaxonomyPackagingMaterialField> fields) Iterable<String>
Converts the given list of fields to their corresponding query string values.
convertResults(dynamic jsonData) Map<String, TaxonomyPackagingMaterial>
Creates a map of the correct taxonomy type from the raw JSON data.
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