toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = <String, dynamic>{};
  data['lowerLeft'] = this.lowerLeft?.toJson();
  data['upperRight'] = this.upperRight?.toJson();
  data['center'] = this.center?.toJson();
  data['range'] = this.range;
  data['shape'] = this.shape;
  data['isDistanceSort'] = this.isDistanceSort;
  data['polyGonList'] = this.polyGonList?.map((it) => it.toJson()).toList() ?? [];
  return data;
}