Geometry.fromJson constructor

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

Implementation

factory Geometry.fromJson(Map<String, dynamic> json) {
  return Geometry(
    location:
        json['location'] != null ? Location.fromJson(json['location']) : null,
    locationType: json['location_type'],
    viewport:
        json['viewport'] != null ? Viewport.fromJson(json['viewport']) : null,
    bounds: json['bounds'] != null ? Bounds.fromJson(json['bounds']) : null,
  );
}