toJson method

Map<String, dynamic> toJson()

Implementation

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