NearbySearchRequest.fromMap constructor
NearbySearchRequest.fromMap(
- Map map
Implementation
factory NearbySearchRequest.fromMap(Map<dynamic, dynamic> map) {
return NearbySearchRequest(
pageSize: map['pageSize'],
pageIndex: map['pageIndex'],
query: map['query'],
location: map['location'] != null
? Coordinate.fromMap(map['location'])
: throw ('A location object must be provided.'),
radius: map['radius'],
poiType: map['poiType'] != null
? LocationType.fromString(map['poiType'])
: null,
language: map['language'],
hwPoiType: map['hwPoiType'] != null
? HwLocationType.fromString(map['hwPoiType'])
: null,
strictBounds: map['strictBounds'],
);
}