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