Price class
Price object.
cf. PriceFull in https://prices.openfoodfacts.org/api/docs
- Inheritance
-
- Object
- JsonObject
- Price
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
- 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. Read-only.
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
- 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 (user input).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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