WarningRsp.fromMap constructor

WarningRsp.fromMap(
  1. Map map
)

fromMap

Implementation

WarningRsp.fromMap(Map<dynamic, dynamic> map) {
  code = map['code'] as String;
  basic = Basic.fromMap(map['basic'] ?? Map());
  refer = Refer.fromMap(map['refer'] ?? Map());
  warningList = map.containsKey('warningList')
      ? (map['warningList'] as List).map((v) => Warning.fromMap(v)).toList()
      : [];
}