Viewport.fromJson constructor

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

Implementation

factory Viewport.fromJson(Map<String, dynamic> json) => Viewport(
      northeast: json["northeast"] == null
          ? null
          : Location.fromJson(json["northeast"]),
      southwest: json["southwest"] == null
          ? null
          : Location.fromJson(json["southwest"]),
    );