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