SearchBound.fromJson constructor

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

Implementation

SearchBound.fromJson(Map<String, dynamic> json)
    : lowerLeft = json['lowerLeft'] != null ? LatLng.fromJson(json['lowerLeft']) : null,
      upperRight = json['upperRight'] != null ? LatLng.fromJson(json['upperRight']) : null,
      center = json['center'] != null ? LatLng.fromJson(json['center']) : null,
      range = json['range'],
      shape = json['shape'],
      isDistanceSort = json['isDistanceSort'] {
  if (json['polyGonList'] != null) {
    polyGonList = [];
    json['polyGonList'].forEach((v) {
      polyGonList?.add(LatLng.fromJson(v));
    });
  }
}