openfoodfacts library
Classes
- Additives
- BadgeBase
- Events API: badge.
- Correction
- EventsAPIClient
- Client calls of the Events API (Open Food Facts).
- EventsBase
- Events API: event.
- FolksonomyAPIClient
- Client calls of the Folksonomy API (Open Food Facts)
- HttpHelper
- General functions for sending http requests (post, get, multipart, ...)
- ImageHelper
- Helper class related to product pictures
- Ingredient
- Insight
- InsightsResult
- JsonHelper
- Helper class around product field conversion to/from JSON
- KeyStats
- Folksonomy: statistics around a tag key.
- LanguageHelper
- Helper class around OpenFoodFactsLanguage
- LeaderboardEntry
- Events API: leaderboard entry.
- NutrimentsHelper
- Helper class for energy computations and checks
- OpenFoodAPIClient
- Client calls of the Open Food Facts API
- Page
- PageNumber
- "Page number" search API parameter
- PageSize
- "Page size" search API parameter
- Parameter
- Abstract search API parameter, to be used in the search URI
- Product
- This class contains most of the data about a specific product.
- ProductFreshness
- Freshness of a Product.
- ProductHelper
- Helper class around Product fields
- ProductImage
- The url to a specific product image. Categorized by content type, size and language
- ProductQueryConfiguration
- Query Configuration for single barcode
- ProductQueryVersion
- Query version for single barcode
- ProductResult
- ProductSearchQueryConfiguration
- Query Configuration for search parameters
- ProductStats
- Folksonomy: statistics about the tag keys on a product.
- ProductTag
- Folksonomy product tag: for this barcode, that value is set for that key.
- RobotoffQuestion
- RobotoffQuestionResult
- SearchResult
- SendImage
- SortBy
- Sort search API parameter
- SpellingCorrection
- Status
- TagI18N
- A tag with internationalisation.
- TaxonomyCategory
- A JSON-serializable version of a category taxonomy result.
- TaxonomyCategoryQueryConfiguration
- TaxonomyPackaging
- A JSON-serializable version of a Packaging taxonomy result.
- TaxonomyPackagingQueryConfiguration
- Configuration for packaging API query.
- TermCorrections
- User
Enums
- ImageAngle
- Angle for image rotation.
- ImageField
- ImageSize
- IngredientSpecialPropertyStatus
- InsightAnnotation
- InsightType
- NormalizedEnergyUnit
- Energy units
- OpenFoodFactsLanguage
- Available languages
- ProductField
- Fields of a Product
- ProductImprovement
- Possible improvements on a Product given its current data
- ProductImprovementCategory
- Category: what would this ProductImprovement help compute?
- SortOption
- Possible sort options for search API
- TaxonomyCategoryField
- Fields of a TaxonomyCategory
- TaxonomyPackagingField
- Fields of an TaxonomyPackaging
Extensions
Functions
-
convertFieldsToStrings(
List< ProductField> fields, List<OpenFoodFactsLanguage> languages) → List<String> -
NOTE: if one of the fields is IN_LANGUAGES and
languages
is empty - the function will throw. -
ingredientSpecialPropertyStatusFromJson(
dynamic json) → IngredientSpecialPropertyStatus? -
ingredientSpecialPropertyStatusToJson(
IngredientSpecialPropertyStatus? status) → String?