Geometry.fromJson constructor

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

Implementation

factory Geometry.fromJson(Map<String, dynamic> json) => Geometry(
  location:
      json["location"] == null ? null : Location.fromJson(json["location"]),
  locationType:
      json["location_type"] == null
          ? null
          : locationTypeValues.map[json["location_type"]],
  viewport:
      json["viewport"] == null ? null : Bounds.fromJson(json["viewport"]),
  bounds: json["bounds"] == null ? null : Bounds.fromJson(json["bounds"]),
);