AirNow.fromMap constructor

AirNow.fromMap(
  1. Map map
)

Implementation

AirNow.fromMap(Map<dynamic, dynamic> map) {
  pubTime = map['pubTime'] as String;
  aqi = map['aqi'] as String;
  primary = map['primary'] as String;
  level = map['level'] as String;
  category = map['category'] as String;
  pm10 = map['pm10'] as String;
  pm2p5 = map['pm2p5'] as String;
  no2 = map['no2'] as String;
  so2 = map['so2'] as String;
  co = map['co'] as String;
  o3 = map['o3'] as String;
}