Viewport.fromJson constructor

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

Implementation

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