Location class

Location object in the Prices API.

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

Inheritance

Constructors

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

Properties

city String?
getter/setter pair
country String?
getter/setter pair
countryCode String?
getter/setter pair
created DateTime
Date when the product was bought.
getter/setter pair
displayName String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
latitude double?
getter/setter pair
locationId int
ID in the Prices API.
getter/setter pair
locationType LocationType
Type of the location object.
getter/setter pair
longitude double?
getter/setter pair
name String?
getter/setter pair
osmId int?
ID of the location in OpenStreetMap: the store where the product was bought.
getter/setter pair
osmKey String?
getter/setter pair
osmValue String?
getter/setter pair
postcode String?
getter/setter pair
priceCount int?
Number of prices for this location.
getter/setter pair
productCount int?
Number of products for this location.
getter/setter pair
proofCount int?
Number of proofs for this location.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type LocationOSMType?
Type of the OpenStreetMap location object.
getter/setter pair
updated DateTime?
Latest update timestamp.
getter/setter pair
userCount int?
Number of users for this location.
getter/setter pair
websiteUrl String?
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