StationNow.fromMap constructor

StationNow.fromMap(
  1. Map map
)

Implementation

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