StormTracRsp.fromMap constructor

StormTracRsp.fromMap(
  1. Map map
)

fromMap

Implementation

StormTracRsp.fromMap(Map<dynamic, dynamic> map) {
  code = map['code'] as String;
  basic = Basic.fromMap(map['basic'] ?? Map());
  refer = Refer.fromMap(map['refer'] ?? Map());
  isActive = map['isActive'] ?? '0';
  now = StormTrackNow.fromMap(map['now']);
  trackList = (map["trackList"] as List? ?? [])
      .map((v) => StormTrack.fromMap(v))
      .toList();
}