Your locations persist
This commit is contained in:
parent
ce2b65f1e0
commit
7fbe5b971d
10 changed files with 140 additions and 182 deletions
|
|
@ -8,4 +8,18 @@ class BasicLocation {
|
|||
static BasicLocation noLocation = new BasicLocation(lat:0.0, lon:0.0);
|
||||
|
||||
BasicLocation({@required this.lat, @required this.lon, this.description});
|
||||
|
||||
BasicLocation.fromJson(Map<String, dynamic> json)
|
||||
: lat = json['lat'],
|
||||
lon = json['lon'],
|
||||
description = json['description']
|
||||
;
|
||||
|
||||
Map<String, dynamic> toJson() =>
|
||||
{
|
||||
'lat': lat,
|
||||
'lon': lon,
|
||||
'description': description,
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue