Price class

Price object.

cf. PriceFull in https://prices.openfoodfacts.org/api/docs

Inheritance

Constructors

Price()
Price.fromJson(Map<String, dynamic> json)
factory

Properties

categoryTag String?
ID of the OFF category of the product for products without barcode.
getter/setter pair
created DateTime
getter/setter pair
currency Currency
Currency of the price.
getter/setter pair
date DateTime
Date when the product was bought.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
getter/setter pair
labelsTags List<String>?
Labels of the product, only for products without barcode.
getter/setter pair
locationId int?
getter/setter pair
locationOSMId int
ID of the location in OpenStreetMap: the store where the product was bought.
getter/setter pair
locationOSMType LocationOSMType
Type of the OpenStreetMap location object.
getter/setter pair
originsTags List<String>?
Origins of the product, only for products without barcode.
getter/setter pair
owner String
Owner.
getter/setter pair
price num
Price of the product, without its currency, taxes included.
getter/setter pair
priceIsDiscounted bool?
True if the price is discounted.
getter/setter pair
pricePer PricePer?
Price per unit, kilogram, ..?
getter/setter pair
priceWithoutDiscount num?
Price of the product, without discount, taxes included.
getter/setter pair
productCode String?
Barcode (EAN) of the product.
getter/setter pair
productId int?
getter/setter pair
productName String?
Name of the product, as displayed on the receipt or the price tag.
getter/setter pair
proofId int?
ID of the proof, if any.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toData() Map<String, String>
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited
toValueString() String
Returns all values as a String separated by a hyphen value1 - value2 - value3
inherited

Operators

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