Viewport.fromJson constructor

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

Implementation

Viewport.fromJson(Map<String, dynamic> json) {
  if (json["northeast"] is Map)
    this.northeast = json["northeast"] == null ? null : Northeast.fromJson(json["northeast"]);
  if (json["southwest"] is Map)
    this.southwest = json["southwest"] == null ? null : Southwest.fromJson(json["southwest"]);
}