mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-27 12:36:27 +08:00
@@ -64,7 +64,8 @@ class ImUserInfosData {
|
||||
official: json['official'] == null
|
||||
? null
|
||||
: BaseOfficialVerify.fromJson(
|
||||
json['official'] as Map<String, dynamic>),
|
||||
json['official'] as Map<String, dynamic>,
|
||||
),
|
||||
birthday: json['birthday'] as int?,
|
||||
isFakeAccount: json['is_fake_account'] as int?,
|
||||
isDeleted: json['is_deleted'] as int?,
|
||||
|
||||
@@ -34,20 +34,20 @@ class MsgAtContent {
|
||||
});
|
||||
|
||||
factory MsgAtContent.fromJson(Map<String, dynamic> json) => MsgAtContent(
|
||||
type: json['type'] as String?,
|
||||
business: json['business'] as String?,
|
||||
businessId: json['business_id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
image: json['image'] as String?,
|
||||
uri: json['uri'] as String?,
|
||||
subjectId: json['subject_id'] as int?,
|
||||
rootId: json['root_id'] as int?,
|
||||
targetId: json['target_id'] as int?,
|
||||
sourceId: json['source_id'] as int?,
|
||||
sourceContent: json['source_content'] as String?,
|
||||
nativeUri: json['native_uri'] as String?,
|
||||
atDetails: json['at_details'] as List<dynamic>?,
|
||||
topicDetails: json['topic_details'] as List<dynamic>?,
|
||||
hideReplyButton: json['hide_reply_button'] as bool?,
|
||||
);
|
||||
type: json['type'] as String?,
|
||||
business: json['business'] as String?,
|
||||
businessId: json['business_id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
image: json['image'] as String?,
|
||||
uri: json['uri'] as String?,
|
||||
subjectId: json['subject_id'] as int?,
|
||||
rootId: json['root_id'] as int?,
|
||||
targetId: json['target_id'] as int?,
|
||||
sourceId: json['source_id'] as int?,
|
||||
sourceContent: json['source_content'] as String?,
|
||||
nativeUri: json['native_uri'] as String?,
|
||||
atDetails: json['at_details'] as List<dynamic>?,
|
||||
topicDetails: json['topic_details'] as List<dynamic>?,
|
||||
hideReplyButton: json['hide_reply_button'] as bool?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Cursor {
|
||||
Cursor({this.isEnd, this.id, this.time});
|
||||
|
||||
factory Cursor.fromJson(Map<String, dynamic> json) => Cursor(
|
||||
isEnd: json['is_end'] as bool?,
|
||||
id: json['id'] as int?,
|
||||
time: json['time'] as int?,
|
||||
);
|
||||
isEnd: json['is_end'] as bool?,
|
||||
id: json['id'] as int?,
|
||||
time: json['time'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ class MsgAtData {
|
||||
MsgAtData({this.cursor, this.items});
|
||||
|
||||
factory MsgAtData.fromJson(Map<String, dynamic> json) => MsgAtData(
|
||||
cursor: json['cursor'] == null
|
||||
? null
|
||||
: Cursor.fromJson(json['cursor'] as Map<String, dynamic>),
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgAtItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
cursor: json['cursor'] == null
|
||||
? null
|
||||
: Cursor.fromJson(json['cursor'] as Map<String, dynamic>),
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgAtItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -10,13 +10,13 @@ class MsgAtItem {
|
||||
MsgAtItem({this.id, this.user, this.item, this.atTime});
|
||||
|
||||
factory MsgAtItem.fromJson(Map<String, dynamic> json) => MsgAtItem(
|
||||
id: json['id'] as int?,
|
||||
user: json['user'] == null
|
||||
? null
|
||||
: User.fromJson(json['user'] as Map<String, dynamic>),
|
||||
item: json['item'] == null
|
||||
? null
|
||||
: MsgAtContent.fromJson(json['item'] as Map<String, dynamic>),
|
||||
atTime: json['at_time'] as int?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
user: json['user'] == null
|
||||
? null
|
||||
: User.fromJson(json['user'] as Map<String, dynamic>),
|
||||
item: json['item'] == null
|
||||
? null
|
||||
: MsgAtContent.fromJson(json['item'] as Map<String, dynamic>),
|
||||
atTime: json['at_time'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ class User {
|
||||
});
|
||||
|
||||
factory User.fromJson(Map<String, dynamic> json) => User(
|
||||
mid: json['mid'] as int?,
|
||||
fans: json['fans'] as int?,
|
||||
nickname: json['nickname'] as String?,
|
||||
avatar: json['avatar'] as String?,
|
||||
midLink: json['mid_link'] as String?,
|
||||
follow: json['follow'] as bool?,
|
||||
);
|
||||
mid: json['mid'] as int?,
|
||||
fans: json['fans'] as int?,
|
||||
nickname: json['nickname'] as String?,
|
||||
avatar: json['avatar'] as String?,
|
||||
midLink: json['mid_link'] as String?,
|
||||
follow: json['follow'] as bool?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class UidSetting {
|
||||
UidSetting({this.id, this.setting});
|
||||
|
||||
factory UidSetting.fromJson(Map<String, dynamic> json) => UidSetting(
|
||||
id: json['id'] as int?,
|
||||
setting: json['setting'] as int?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
setting: json['setting'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Cursor {
|
||||
Cursor({this.isEnd, this.id, this.time});
|
||||
|
||||
factory Cursor.fromJson(Map<String, dynamic> json) => Cursor(
|
||||
isEnd: json['is_end'] as bool?,
|
||||
id: json['id'] as int?,
|
||||
time: json['time'] as int?,
|
||||
);
|
||||
isEnd: json['is_end'] as bool?,
|
||||
id: json['id'] as int?,
|
||||
time: json['time'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ class MsgLikeData {
|
||||
MsgLikeData({this.latest, this.total});
|
||||
|
||||
factory MsgLikeData.fromJson(Map<String, dynamic> json) => MsgLikeData(
|
||||
latest: json['latest'] == null
|
||||
? null
|
||||
: Latest.fromJson(json['latest'] as Map<String, dynamic>),
|
||||
total: json['total'] == null
|
||||
? null
|
||||
: Total.fromJson(json['total'] as Map<String, dynamic>),
|
||||
);
|
||||
latest: json['latest'] == null
|
||||
? null
|
||||
: Latest.fromJson(json['latest'] as Map<String, dynamic>),
|
||||
total: json['total'] == null
|
||||
? null
|
||||
: Total.fromJson(json['total'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,15 +20,15 @@ class MsgLikeItem {
|
||||
});
|
||||
|
||||
factory MsgLikeItem.fromJson(Map<String, dynamic> json) => MsgLikeItem(
|
||||
id: json['id'] as int?,
|
||||
users: (json['users'] as List<dynamic>?)
|
||||
?.map((e) => User.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
item: json['item'] == null
|
||||
? null
|
||||
: MsgLikeContent.fromJson(json['item'] as Map<String, dynamic>),
|
||||
counts: json['counts'] as int?,
|
||||
likeTime: json['like_time'] as int?,
|
||||
noticeState: json['notice_state'] as int?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
users: (json['users'] as List<dynamic>?)
|
||||
?.map((e) => User.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
item: json['item'] == null
|
||||
? null
|
||||
: MsgLikeContent.fromJson(json['item'] as Map<String, dynamic>),
|
||||
counts: json['counts'] as int?,
|
||||
likeTime: json['like_time'] as int?,
|
||||
noticeState: json['notice_state'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@ class Latest {
|
||||
Latest({this.items, this.lastViewAt});
|
||||
|
||||
factory Latest.fromJson(Map<String, dynamic> json) => Latest(
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgLikeItem.fromJson(e))
|
||||
.toList(),
|
||||
lastViewAt: json['last_view_at'] as int?,
|
||||
);
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgLikeItem.fromJson(e))
|
||||
.toList(),
|
||||
lastViewAt: json['last_view_at'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ class Total {
|
||||
Total({this.cursor, this.items});
|
||||
|
||||
factory Total.fromJson(Map<String, dynamic> json) => Total(
|
||||
cursor: json['cursor'] == null
|
||||
? null
|
||||
: Cursor.fromJson(json['cursor'] as Map<String, dynamic>),
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgLikeItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
cursor: json['cursor'] == null
|
||||
? null
|
||||
: Cursor.fromJson(json['cursor'] as Map<String, dynamic>),
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgLikeItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ class User {
|
||||
});
|
||||
|
||||
factory User.fromJson(Map<String, dynamic> json) => User(
|
||||
mid: json['mid'] as int?,
|
||||
fans: json['fans'] as int?,
|
||||
nickname: json['nickname'] as String?,
|
||||
avatar: json['avatar'] as String?,
|
||||
midLink: json['mid_link'] as String?,
|
||||
follow: json['follow'] as bool?,
|
||||
);
|
||||
mid: json['mid'] as int?,
|
||||
fans: json['fans'] as int?,
|
||||
nickname: json['nickname'] as String?,
|
||||
avatar: json['avatar'] as String?,
|
||||
midLink: json['mid_link'] as String?,
|
||||
follow: json['follow'] as bool?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Cursor {
|
||||
Cursor({this.isEnd, this.id, this.time});
|
||||
|
||||
factory Cursor.fromJson(Map<String, dynamic> json) => Cursor(
|
||||
isEnd: json['is_end'] as bool?,
|
||||
id: json['id'] as int?,
|
||||
time: json['time'] as int?,
|
||||
);
|
||||
isEnd: json['is_end'] as bool?,
|
||||
id: json['id'] as int?,
|
||||
time: json['time'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -9,12 +9,12 @@ class MsgReplyData {
|
||||
MsgReplyData({this.cursor, this.items, this.lastViewAt});
|
||||
|
||||
factory MsgReplyData.fromJson(Map<String, dynamic> json) => MsgReplyData(
|
||||
cursor: json['cursor'] == null
|
||||
? null
|
||||
: Cursor.fromJson(json['cursor'] as Map<String, dynamic>),
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgReplyItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
lastViewAt: json['last_view_at'] as int?,
|
||||
);
|
||||
cursor: json['cursor'] == null
|
||||
? null
|
||||
: Cursor.fromJson(json['cursor'] as Map<String, dynamic>),
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgReplyItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
lastViewAt: json['last_view_at'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,15 +20,15 @@ class MsgReplyItem {
|
||||
});
|
||||
|
||||
factory MsgReplyItem.fromJson(Map<String, dynamic> json) => MsgReplyItem(
|
||||
id: json['id'] as int?,
|
||||
user: json['user'] == null
|
||||
? null
|
||||
: User.fromJson(json['user'] as Map<String, dynamic>),
|
||||
item: json['item'] == null
|
||||
? null
|
||||
: MsgReplyContent.fromJson(json['item'] as Map<String, dynamic>),
|
||||
counts: json['counts'] as int?,
|
||||
isMulti: json['is_multi'] as int?,
|
||||
replyTime: json['reply_time'] as int?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
user: json['user'] == null
|
||||
? null
|
||||
: User.fromJson(json['user'] as Map<String, dynamic>),
|
||||
item: json['item'] == null
|
||||
? null
|
||||
: MsgReplyContent.fromJson(json['item'] as Map<String, dynamic>),
|
||||
counts: json['counts'] as int?,
|
||||
isMulti: json['is_multi'] as int?,
|
||||
replyTime: json['reply_time'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@ class User {
|
||||
});
|
||||
|
||||
factory User.fromJson(Map<String, dynamic> json) => User(
|
||||
mid: json['mid'] as int?,
|
||||
fans: json['fans'] as int?,
|
||||
nickname: json['nickname'] as String?,
|
||||
avatar: json['avatar'] as String?,
|
||||
midLink: json['mid_link'] as String?,
|
||||
follow: json['follow'] as bool?,
|
||||
);
|
||||
mid: json['mid'] as int?,
|
||||
fans: json['fans'] as int?,
|
||||
nickname: json['nickname'] as String?,
|
||||
avatar: json['avatar'] as String?,
|
||||
midLink: json['mid_link'] as String?,
|
||||
follow: json['follow'] as bool?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ class Publisher {
|
||||
Publisher({this.name, this.mid, this.face});
|
||||
|
||||
factory Publisher.fromJson(Map<String, dynamic> json) => Publisher(
|
||||
name: json['name'] as String?,
|
||||
mid: json['mid'] as int?,
|
||||
face: json['face'] as String?,
|
||||
);
|
||||
name: json['name'] as String?,
|
||||
mid: json['mid'] as int?,
|
||||
face: json['face'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class Source {
|
||||
Source({this.name, this.logo});
|
||||
|
||||
factory Source.fromJson(Map<String, dynamic> json) => Source(
|
||||
name: json['name'] as String?,
|
||||
logo: json['logo'] as String?,
|
||||
);
|
||||
name: json['name'] as String?,
|
||||
logo: json['logo'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@ class SessionSsData {
|
||||
});
|
||||
|
||||
factory SessionSsData.fromJson(Map<String, dynamic> json) => SessionSsData(
|
||||
followStatus: json['follow_status'] as int?,
|
||||
special: json['special'] as int?,
|
||||
pushSetting: json['push_setting'] as int?,
|
||||
showPushSetting: json['show_push_setting'] as int?,
|
||||
);
|
||||
followStatus: json['follow_status'] as int?,
|
||||
special: json['special'] as int?,
|
||||
pushSetting: json['push_setting'] as int?,
|
||||
showPushSetting: json['show_push_setting'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user