toMap method

  1. @override
Map<String, Object> toMap ()

model -> map

Implementation

@override
Map<String, Object> toMap() {
  return {
    "cityID": this.cityID,
    "cityName": this.cityName,
    "ratio": this.ratio,
    "status": this.status,
    "geoPt": this.geoPt?.toMap(),
    "size": this.size,
    "serversize": this.serversize,
    "level": this.level,
    "update": this.update
  };
}