OceanCurrentsRsp.fromMap constructor
OceanCurrentsRsp.fromMap(
- Map map
fromMap
Implementation
OceanCurrentsRsp.fromMap(Map<dynamic, dynamic> map) {
code = map['code'] as String;
basic = Basic.fromMap(map['basic'] ?? Map());
refer = Refer.fromMap(map['refer'] ?? Map());
currentsHourlyList = (map["hourlyList"] as List? ?? [])
.map((v) => OceanCurrents.fromMap(v))
.toList();
currentsList = (map["tableList"] as List? ?? [])
.map((v) => OceanCurrents.fromMap(v))
.toList();
}