AirDailyResp.fromMap constructor
AirDailyResp.fromMap(
- Map map
fromMap
Implementation
AirDailyResp.fromMap(Map<dynamic, dynamic> map) {
code = map['code'] as String;
basic = Basic.fromMap(map['basic'] ?? Map());
refer = Refer.fromMap(map['refer'] ?? Map());
daily = map.containsKey('airDailyBeans')
? (map['airDailyBeans'] as List)
.map((v) => AirDaily.fromMap(v))
.toList()
: [];
}