class FollowUpModel { FollowUpModel({ this.liveUsers, this.upList, this.liveList, this.myInfo, }); LiveUsers? liveUsers; List? upList; List? liveList; MyInfo? myInfo; FollowUpModel.fromJson(Map json) { liveUsers = json['live_users'] != null ? LiveUsers.fromJson(json['live_users']) : null; liveList = json['live_users'] != null ? json['live_users']['items'] .map((e) => LiveUserItem.fromJson(e)) .toList() : []; upList = json['up_list'] != null ? json['up_list'].map((e) => UpItem.fromJson(e)).toList() : []; myInfo = json['my_info'] != null ? MyInfo.fromJson(json['my_info']) : null; } } class LiveUsers { LiveUsers({ this.count, this.group, this.items, }); int? count; String? group; List? items; LiveUsers.fromJson(Map json) { count = json['count']; group = json['group']; items = json['items'] .map((e) => LiveUserItem.fromJson(e)) .toList(); } } class LiveUserItem { LiveUserItem({ this.face, this.isReserveRecall, this.jumpUrl, this.mid, this.roomId, this.title, this.uname, }); String? face; bool? isReserveRecall; String? jumpUrl; int? mid; int? roomId; String? title; String? uname; bool hasUpdate = false; String type = 'live'; LiveUserItem.fromJson(Map json) { face = json['face']; isReserveRecall = json['is_reserve_recall']; jumpUrl = json['jump_url']; mid = json['mid']; roomId = json['room_id']; title = json['title']; uname = json['uname']; } } class UpItem { UpItem({ this.face, this.hasUpdate, this.isReserveRecall, this.mid, this.uname, }); String? face; bool? hasUpdate; bool? isReserveRecall; int? mid; String? uname; String type = 'up'; UpItem.fromJson(Map json) { face = json['face']; hasUpdate = json['has_update']; isReserveRecall = json['is_reserve_recall']; mid = json['mid']; uname = json['uname']; } } class MyInfo { MyInfo({ this.face, this.mid, this.name, }); String? face; int? mid; String? name; MyInfo.fromJson(Map json) { face = json['face']; mid = json['mid']; name = json['name']; } }