toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
  "name": name,
  "code": code,
  "local_areas": localAreas == null ? [] : List<dynamic>.from(localAreas!.map((x) => x.toMap())),
};