GeocoderBounds.fromJson constructor

GeocoderBounds.fromJson(
  1. Map<String, dynamic> json
)

Implementation

GeocoderBounds.fromJson(Map<String, dynamic> json) {
  northeast = Coordinates(
    latitude: double.parse(json['northeast']['lat'].toString()),
    longitude: double.parse(json['northeast']['lng'].toString()),
  );
  southwest = Coordinates(
    latitude: double.parse(json['southwest']['lat'].toString()),
    longitude: double.parse(json['southwest']['lng'].toString()),
  );
}