ForecastRsp.fromMap constructor
ForecastRsp.fromMap(
- Map map
fromMap
Implementation
ForecastRsp.fromMap(Map<dynamic, dynamic> map) {
code = map['code'] as String;
basic = Basic.fromMap(map['basic'] ?? Map());
refer = Refer.fromMap(map['refer'] ?? Map());
forecastList = (map["forecastList"] as List? ?? [])
.map((v) => Forecast.fromMap(v))
.toList();
}