Geometry.fromJson constructor

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

Implementation

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