Your locations persist

This commit is contained in:
vjrj 2018-06-09 23:08:23 +02:00
parent ce2b65f1e0
commit 7fbe5b971d
10 changed files with 140 additions and 182 deletions

View file

@ -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,
};
}