103 lines
2.0 KiB
Dart
103 lines
2.0 KiB
Dart
class FollowUpModel {
|
|
FollowUpModel({
|
|
this.liveUsers,
|
|
this.upList,
|
|
this.liveList,
|
|
});
|
|
|
|
LiveUsers? liveUsers;
|
|
List<UpItem>? upList;
|
|
List<LiveUserItem>? liveList;
|
|
|
|
FollowUpModel.fromJson(Map<String, dynamic> json) {
|
|
liveUsers = json['live_users'] != null
|
|
? LiveUsers.fromJson(json['live_users'])
|
|
: null;
|
|
liveList = json['live_users'] != null
|
|
? json['live_users']['items']
|
|
.map<LiveUserItem>((e) => LiveUserItem.fromJson(e))
|
|
.toList()
|
|
: [];
|
|
upList = json['up_list'] != null
|
|
? json['up_list'].map<UpItem>((e) => UpItem.fromJson(e)).toList()
|
|
: [];
|
|
}
|
|
}
|
|
|
|
class LiveUsers {
|
|
LiveUsers({
|
|
this.count,
|
|
this.group,
|
|
this.items,
|
|
});
|
|
|
|
int? count;
|
|
String? group;
|
|
List<LiveUserItem>? items;
|
|
|
|
LiveUsers.fromJson(Map<String, dynamic> json) {
|
|
count = json['count'];
|
|
group = json['group'];
|
|
items = json['items']
|
|
.map<LiveUserItem>((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<String, dynamic> 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<String, dynamic> json) {
|
|
face = json['face'];
|
|
hasUpdate = json['has_update'];
|
|
isReserveRecall = json['is_reserve_recall'];
|
|
mid = json['mid'];
|
|
uname = json['uname'];
|
|
}
|
|
}
|