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