GeocoderGeometry.fromJson constructor

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

Implementation

GeocoderGeometry.fromJson(Map<String, dynamic> json) {
  type = json['type'] as String?;
  interpolated = json['interpolated'] as bool?;
  omitted = json['omitted'] as bool?;

  if (json.containsKey('coordinates') && json['coordinates'] != null) {
    coordinates = List<double>.from(
      json['coordinates'] as List<dynamic>,
    );
  }
}