BMFPoiCitySearchOption.fromMap constructor
- Map map
map => BMFPoiCitySearchOption
Implementation
BMFPoiCitySearchOption.fromMap(Map map)
: assert(map != null,
'Construct a BMFPoiCitySearchOption,The parameter map cannot be null !') {
keyword = map['keyword'];
if (map['tags'] != null) {
tags = new List<String>();
map['tags'].forEach((v) {
tags.add(v as String);
});
}
city = map['city'];
isCityLimit = map['isCityLimit'] as bool;
scope = BMFPoiSearchScopeType.values[map['scope'] as int];
filter = map['filter'] == null
? null
: BMFPoiSearchFilter.fromMap(map['filter']);
pageIndex = map['pageIndex'];
pageSize = map['pageSize'];
}