WarningListRsp.fromMap constructor
WarningListRsp.fromMap(
- Map map
fromMap
Implementation
WarningListRsp.fromMap(Map<dynamic, dynamic> map) {
code = map['code'] as String;
basic = Basic.fromMap(map['basic'] ?? Map());
refer = Refer.fromMap(map['refer'] ?? Map());
warningList = List.from((map['warningBean'] as List? ?? [])
.map((v) => WarningLocation.fromMap(v)));
}