toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = <String, dynamic>{};
  if (this.centerPoint != null) {
    data['centerPoint'] = this.centerPoint?.toJson();
  }
  data['name'] = this.name;
  return data;
}