WarningListRsp.fromMap constructor

WarningListRsp.fromMap(
  1. 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)));
}