Geometry.fromJson constructor

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

Implementation

Geometry.fromJson(Map<String, dynamic> json) {
  if (json["location"] is Map) {
    location = json["location"] == null ? null : LocationResultModel.fromJson(json["location"]);
  }
  if (json["viewport"] is Map) {
    viewport = json["viewport"] == null ? null : Viewport.fromJson(json["viewport"]);
  }
}