BMFPoiIndoorSearchResult.fromMap constructor

BMFPoiIndoorSearchResult.fromMap(
  1. Map map
)

map => BMFPoiIndoorSearchResult

Implementation

BMFPoiIndoorSearchResult.fromMap(Map map)
    : assert(map != null,
          'Construct a BMFPoiIndoorSearchResult,The parameter map cannot be null !') {
  totalPOINum = map['totalPOINum'];
  totalPageNum = map['totalPageNum'];
  curPOINum = map['curPOINum'];
  curPageIndex = map['curPageIndex'];
  if (map['poiIndoorInfoList'] != null) {
    poiIndoorInfoList = new List<BMFPoiIndoorInfo>();
    map['poiIndoorInfoList'].forEach((v) {
      poiIndoorInfoList.add(BMFPoiIndoorInfo.fromMap(v as Map));
    });
  }
}