BMFOpenPoiNearOption.fromMap constructor Null safety

BMFOpenPoiNearOption.fromMap(
  1. Map map
)

map => BMFOpenPoiNearOption

Implementation

BMFOpenPoiNearOption.fromMap(Map map)
    : assert(
          map != null, //ignore: unnecessary_null_comparison
          'Construct a BMFOpenPoiNearOption,The parameter map cannot be null !'),
      assert(map.containsKey('location')) {
  location =
      map['location'] == null ? null : BMFCoordinate.fromMap(map['location']);
  radius = map['radius'] as int?;
  keyword = map['keyword'];
  appScheme = map['appScheme'];
  isSupportWeb = map['isSupportWeb'] as bool?;
}