DetailGeometry.fromJson constructor

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

Implementation

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