Proof class
Proof of a price.
cf. ProofFull
in https://prices.openfoodfacts.org/api/docs
- Inheritance
-
- Object
- JsonObject
- Proof
Constructors
- Proof()
-
Proof.fromJson(Map<
String, dynamic> json) -
factory
Properties
- 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
- filePath ↔ String?
-
Image file path. Read-only.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
Proof ID. Read-only.
getter/setter pair
- imageThumbPath ↔ String?
-
Image thumb file path. Read-only.
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.
getter/setter pair
- locationOSMType ↔ LocationOSMType?
-
Type of the OpenStreetMap location object.
getter/setter pair
- mimetype ↔ String
-
Mime type. Read-only.
getter/setter pair
- owner ↔ String
-
Owner. Read-only.
getter/setter pair
- priceCount ↔ int
-
Number of prices for this proof. Read-only.
getter/setter pair
- receiptPriceCount ↔ int?
-
Receipt's number of prices (user input).
getter/setter pair
- receiptPriceTotal ↔ num?
-
Receipt's total amount (user input).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ ProofType?
-
Proof type.
getter/setter pair
- updated ↔ DateTime?
-
Latest update timestamp. Read-only.
getter/setter pair
Methods
-
getFileUrl(
{required UriProductHelper uriProductHelper, bool isThumbnail = false}) → Uri? - Returns the URL of the proof image, thumbnail or full.
-
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