mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 17:46:24 +08:00
@@ -75,50 +75,49 @@ class TopReply {
|
||||
});
|
||||
|
||||
factory TopReply.fromJson(Map<String, dynamic> json) => TopReply(
|
||||
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 List<dynamic>?)
|
||||
?.map((e) => ReplyItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
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 List<dynamic>?)
|
||||
?.map((e) => ReplyItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
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