toMap method

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

model -> map

Implementation

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