toMap method

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

model -> map

Implementation

@override
Map<String, Object> toMap() {
  return {
    'totalPageNum': this.totalPageNum,
    'curPageIndex': this.curPageIndex,
    'totalPOINum': this.totalPOINum,
    'curPOINum': this.curPOINum,
    'poiInfoList': this.poiInfoList?.map((v) => v?.toMap())?.toList()
  };
}