LatLng.fromJson constructor
LatLng.fromJson(
- String json
Build a LatLng object from json String
example on the json:
{"lat":0.0,"lng":0.0}
Implementation
LatLng.fromJson(String json) {
final data = jsonDecode(json);
lat = data['lat'];
lng = data['lng'];
}