toMap method
- @override
override
model -> map
Implementation
@override
Map<String, Object> toMap() {
return {
'cityID': this.cityID,
'dataSize': this.dataSize,
'cityName': this.cityName,
'cityType': this.cityType,
'childCities': this.childCities?.map((city) => city?.toMap())?.toList()
};
}