class FollowUpModel { FollowUpModel({ this.liveUsers, required this.upList, }); LiveUsers? liveUsers; late List upList; FollowUpModel.fromJson(Map json) { liveUsers = json['live_users'] != null ? LiveUsers.fromJson(json['live_users']) : null; upList = (json['up_list'] as List?) ?.map((e) => UpItem.fromJson(e)) .toList() ?? []; } } class LiveUsers { LiveUsers({ this.count, this.group, this.items, }); int? count; String? group; List? items; LiveUsers.fromJson(Map json) { count = json['count'] ?? 0; group = json['group']; items = (json['items'] as List?) ?.map((e) => LiveUserItem.fromJson(e)) .toList(); } } class LiveUserItem extends UpItem { bool? isReserveRecall; String? jumpUrl; int? roomId; String? title; LiveUserItem.fromJson(Map json) : super(mid: json['mid'] ?? 0) { face = json['face']; isReserveRecall = json['is_reserve_recall']; jumpUrl = json['jump_url']; roomId = json['room_id']; title = json['title']; uname = json['uname']; } } class UpItem { String? face; bool? hasUpdate; late int mid; String? uname; UpItem({ this.face, this.hasUpdate, required this.mid, this.uname, }); UpItem.fromJson(Map json) { face = json['face']; hasUpdate = json['has_update']; mid = json['mid'] ?? 0; uname = json['uname']; } }