Viewport.fromJson constructor

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

Implementation

Viewport.fromJson(Map<String, dynamic> json) {
  northeast = json['northeast'] != null
      ? new Location.fromJson(json['northeast'])
      : null;
  southwest = json['southwest'] != null
      ? new Location.fromJson(json['southwest'])
      : null;
}