mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -20,20 +20,20 @@ class ReplyReplyData {
|
||||
});
|
||||
|
||||
factory ReplyReplyData.fromJson(Map<String, dynamic> json) => ReplyReplyData(
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: ReplyPage.fromJson(json['page'] as Map<String, dynamic>),
|
||||
upper: json['upper'] == null
|
||||
? null
|
||||
: Upper.fromJson(json['upper'] as Map<String, dynamic>),
|
||||
replies: (json['replies'] as List<dynamic>?)
|
||||
?.map((e) => ReplyItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
root: json['root'] == null
|
||||
? null
|
||||
: ReplyRoot.fromJson(json['root'] as Map<String, dynamic>),
|
||||
control: json['control'] == null
|
||||
? null
|
||||
: ReplyControl.fromJson(json['control'] as Map<String, dynamic>),
|
||||
);
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: ReplyPage.fromJson(json['page'] as Map<String, dynamic>),
|
||||
upper: json['upper'] == null
|
||||
? null
|
||||
: Upper.fromJson(json['upper'] as Map<String, dynamic>),
|
||||
replies: (json['replies'] as List<dynamic>?)
|
||||
?.map((e) => ReplyItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
root: json['root'] == null
|
||||
? null
|
||||
: ReplyRoot.fromJson(json['root'] as Map<String, dynamic>),
|
||||
control: json['control'] == null
|
||||
? null
|
||||
: ReplyControl.fromJson(json['control'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class ReplyPage {
|
||||
ReplyPage({this.num, this.size, this.count});
|
||||
|
||||
factory ReplyPage.fromJson(Map<String, dynamic> json) => ReplyPage(
|
||||
num: json['num'] as int?,
|
||||
size: json['size'] as int?,
|
||||
count: json['count'] as int?,
|
||||
);
|
||||
num: json['num'] as int?,
|
||||
size: json['size'] as int?,
|
||||
count: json['count'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -74,48 +74,47 @@ class ReplyRoot {
|
||||
});
|
||||
|
||||
factory ReplyRoot.fromJson(Map<String, dynamic> json) => ReplyRoot(
|
||||
rpid: json['rpid'] as int?,
|
||||
oid: json['oid'] as int?,
|
||||
type: json['type'] as int?,
|
||||
mid: json['mid'] as int?,
|
||||
root: json['root'] as int?,
|
||||
parent: json['parent'] as int?,
|
||||
dialog: json['dialog'] as int?,
|
||||
count: json['count'] as int?,
|
||||
rcount: json['rcount'] as int?,
|
||||
state: json['state'] as int?,
|
||||
fansgrade: json['fansgrade'] as int?,
|
||||
attr: json['attr'] as int?,
|
||||
ctime: json['ctime'] as int?,
|
||||
midStr: json['mid_str'] as String?,
|
||||
oidStr: json['oid_str'] as String?,
|
||||
rpidStr: json['rpid_str'] as String?,
|
||||
rootStr: json['root_str'] as String?,
|
||||
parentStr: json['parent_str'] as String?,
|
||||
dialogStr: json['dialog_str'] as String?,
|
||||
like: json['like'] as int?,
|
||||
action: json['action'] as int?,
|
||||
member: json['member'] == null
|
||||
? null
|
||||
: ReplyMember.fromJson(json['member'] as Map<String, dynamic>),
|
||||
content: json['content'] == null
|
||||
? null
|
||||
: ReplyContent.fromJson(json['content'] as Map<String, dynamic>),
|
||||
replies: json['replies'] as dynamic,
|
||||
assist: json['assist'] as int?,
|
||||
upAction: json['up_action'] == null
|
||||
? null
|
||||
: UpAction.fromJson(json['up_action'] as Map<String, dynamic>),
|
||||
invisible: json['invisible'] as bool?,
|
||||
replyControl: json['reply_control'] == null
|
||||
? null
|
||||
: ReplyControl.fromJson(
|
||||
json['reply_control'] as Map<String, dynamic>),
|
||||
folder: json['folder'] == null
|
||||
? null
|
||||
: ReplyFolder.fromJson(json['folder'] as Map<String, dynamic>),
|
||||
dynamicIdStr: json['dynamic_id_str'] as String?,
|
||||
noteCvidStr: json['note_cvid_str'] as String?,
|
||||
trackInfo: json['track_info'] as String?,
|
||||
);
|
||||
rpid: json['rpid'] as int?,
|
||||
oid: json['oid'] as int?,
|
||||
type: json['type'] as int?,
|
||||
mid: json['mid'] as int?,
|
||||
root: json['root'] as int?,
|
||||
parent: json['parent'] as int?,
|
||||
dialog: json['dialog'] as int?,
|
||||
count: json['count'] as int?,
|
||||
rcount: json['rcount'] as int?,
|
||||
state: json['state'] as int?,
|
||||
fansgrade: json['fansgrade'] as int?,
|
||||
attr: json['attr'] as int?,
|
||||
ctime: json['ctime'] as int?,
|
||||
midStr: json['mid_str'] as String?,
|
||||
oidStr: json['oid_str'] as String?,
|
||||
rpidStr: json['rpid_str'] as String?,
|
||||
rootStr: json['root_str'] as String?,
|
||||
parentStr: json['parent_str'] as String?,
|
||||
dialogStr: json['dialog_str'] as String?,
|
||||
like: json['like'] as int?,
|
||||
action: json['action'] as int?,
|
||||
member: json['member'] == null
|
||||
? null
|
||||
: ReplyMember.fromJson(json['member'] as Map<String, dynamic>),
|
||||
content: json['content'] == null
|
||||
? null
|
||||
: ReplyContent.fromJson(json['content'] as Map<String, dynamic>),
|
||||
replies: json['replies'] as dynamic,
|
||||
assist: json['assist'] as int?,
|
||||
upAction: json['up_action'] == null
|
||||
? null
|
||||
: UpAction.fromJson(json['up_action'] as Map<String, dynamic>),
|
||||
invisible: json['invisible'] as bool?,
|
||||
replyControl: json['reply_control'] == null
|
||||
? null
|
||||
: ReplyControl.fromJson(json['reply_control'] as Map<String, dynamic>),
|
||||
folder: json['folder'] == null
|
||||
? null
|
||||
: ReplyFolder.fromJson(json['folder'] as Map<String, dynamic>),
|
||||
dynamicIdStr: json['dynamic_id_str'] as String?,
|
||||
noteCvidStr: json['note_cvid_str'] as String?,
|
||||
trackInfo: json['track_info'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user