GeocoderGeometry.fromJson constructor
Implementation
GeocoderGeometry.fromJson(Map<String, dynamic> json) {
if (json['bounds'] != null) {
bounds = GeocoderBounds.fromJson(json['bounds']);
}
location = Coordinates(
latitude: double.parse(json['location']['lat'].toString()),
longitude: double.parse(json['location']['lng'].toString()),
);
locationType = json['location_type'].toString();
viewport = GeocoderBounds.fromJson(json['viewport']);
}