BMFPoiBoundSearchOption.fromMap constructor

BMFPoiBoundSearchOption.fromMap(
  1. Map map
)

map => BMFPoiBoundSearchOption

Implementation

BMFPoiBoundSearchOption.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);
    });
  }
  leftBottom = map['leftBottom'] == null
      ? null
      : BMFCoordinate.fromMap(map['leftBottom']);
  rightTop =
      map['rightTop'] == null ? null : BMFCoordinate.fromMap(map['rightTop']);
  scope = BMFPoiSearchScopeType.values[map['scope'] as int];
  filter = map['filter'] == null
      ? null
      : BMFPoiSearchFilter.fromMap(map['filter']);
  pageIndex = map['pageIndex'];
  pageSize = map['pageSize'];
}