BMFWeatherSearchLocation.fromMap constructor Null safety

BMFWeatherSearchLocation.fromMap(
  1. Map map
)

map => BMFWeatherSearchLocation

Implementation

BMFWeatherSearchLocation.fromMap(Map map)
    : assert(
          // ignore: unnecessary_null_comparison
          map != null,
          'Construct a BMFWeatherSearchLocation,The parameter map cannot be null !') {
  country = map['country'];
  province = map['province'];
  city = map['city'];
  districtName = map['districtName'];
  districtID = map['districtID'];
}