BMFPoiDetailSearchOption.fromMap constructor

BMFPoiDetailSearchOption.fromMap(
  1. Map map
)

map => BMFPoiDetailSearchOption

Implementation

BMFPoiDetailSearchOption.fromMap(Map map)
    : assert(map != null,
          'Construct a BMFPoiDetailSearchOption,The parameter map cannot be null !') {
  if (map['poiUIDs'] != null) {
    poiUIDs = new List<String>();
    map['poiUIDs'].forEach((v) {
      poiUIDs.add(v as String);
    });
  }
  scope = BMFPoiSearchScopeType.values[map['scope'] as int];
}