Location class

Location object in the Prices API.

cf. LocationBase in https://prices.openfoodfacts.net/docs

Inheritance

Constructors

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

Properties

city String?
getter/setter pair
country 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
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
postcode String?
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?
Date when the product was bought.
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