Location.fromJson constructor
Implementation
Location.fromJson(Map<String, dynamic> json) {
if (json["lat"] != null) {
lat = double.parse(json["lat"].toString());
}
if (json["lng"] != null) {
lng = double.parse(json["lng"].toString());
}
}