BMFWeatherSearchNow.fromMap constructor

BMFWeatherSearchNow.fromMap(
  1. Map map
)

map => BMFWeatherSearchNow

Implementation

BMFWeatherSearchNow.fromMap(Map map)
    : assert(map != null,
          'Construct a BMFWeatherSearchNow,The parameter map cannot be null !') {
  relativeHumidity = map['relativeHumidity'];
  sensoryTemp = map['sensoryTemp'];
  phenomenon = map['phenomenon'];
  windDirection = map['windDirection'];
  updateTime = map['updateTime'];
  temperature = map['temperature'];
  windPower = map['windPower'];
  clouds = map['clouds'];
  hourlyPrecipitation = map['hourlyPrecipitation'];
  visibility = map['visibility'];
  O3 = map['O3'];
  PM2_5 = map['PM2_5'];
  NO2 = map['NO2'];
  SO2 = map['SO2'];
  airQualityIndex = map['airQualityIndex'];
  PM10 = map['PM10'];
  CO = map['CO'];
}