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
Creation timestamp. Read-only.
getter/setter pair
currency ↔ Currency
Currency of the price.
getter/setter pair
date ↔ DateTime
Date when the product was bought.
getter/setter pair
discountType ↔ DiscountType?
getter/setter pair
duplicateOf ↔ int?
Id of duplicate price. Read-only.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ int
Price ID. Read-only.
getter/setter pair
labelsTags ↔ List<String>?
Labels of the product, only for products without barcode.
getter/setter pair
location ↔ Location?
Location. Read-only.
getter/setter pair
locationId ↔ int?
Location ID.
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. Read-only.
getter/setter pair
ownerComment ↔ String?
Owner comment.
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
product ↔ PriceProduct?
Product. Read-only.
getter/setter pair
productCode ↔ String?
Barcode (EAN) of the product.
getter/setter pair
productId ↔ int?
Product ID. Read-only.
getter/setter pair
productName ↔ String?
Name of the product, as displayed on the receipt or the price tag.
getter/setter pair
proof ↔ Proof?
Proof. Read-only.
getter/setter pair
proofId ↔ int?
ID of the proof, if any.
getter/setter pair
receiptQuantity ↔ int?
Receipt's price quantity.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source ↔ String?
Source. Read-only.
getter/setter pair
type ↔ PriceType?
Type.
getter/setter pair
updated ↔ DateTime?
Latest update timestamp. Read-only.
getter/setter pair

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