You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
603 B

class Position1 {
double latitude;
double longitude;
Position1({
this.latitude,
this.longitude,
});
Position1.fromJSON(Map<dynamic, dynamic> json)
: latitude = double.parse((json['latitude']).toString()),
longitude = double.parse((json['longitude']).toString());
Map<dynamic, dynamic> toJson() {
final Map<dynamic, dynamic> data = Map<dynamic, dynamic>();
data['latitude'] = this.latitude;
data['longitude'] = this.longitude;
return data;
}
@override
String toString() {
return '{"latitude": "$latitude","longitude": "$longitude"}';
}
}