mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 00:26:18 +08:00
34 lines
1.0 KiB
Dart
34 lines
1.0 KiB
Dart
class SingleUnreadData {
|
|
int unfollowUnread;
|
|
int followUnread;
|
|
int unfollowPushMsg;
|
|
int dustbinPushMsg;
|
|
int dustbinUnread;
|
|
int bizMsgUnfollowUnread;
|
|
int bizMsgFollowUnread;
|
|
int customUnread;
|
|
|
|
SingleUnreadData({
|
|
required this.unfollowUnread,
|
|
required this.followUnread,
|
|
required this.unfollowPushMsg,
|
|
required this.dustbinPushMsg,
|
|
required this.dustbinUnread,
|
|
required this.bizMsgUnfollowUnread,
|
|
required this.bizMsgFollowUnread,
|
|
required this.customUnread,
|
|
});
|
|
|
|
factory SingleUnreadData.fromJson(Map<String, dynamic> json) =>
|
|
SingleUnreadData(
|
|
unfollowUnread: json['unfollow_unread'] ?? 0,
|
|
followUnread: json['follow_unread'] ?? 0,
|
|
unfollowPushMsg: json['unfollow_push_msg'] ?? 0,
|
|
dustbinPushMsg: json['dustbin_push_msg'] ?? 0,
|
|
dustbinUnread: json['dustbin_unread'] ?? 0,
|
|
bizMsgUnfollowUnread: json['biz_msg_unfollow_unread'] ?? 0,
|
|
bizMsgFollowUnread: json['biz_msg_follow_unread'] ?? 0,
|
|
customUnread: json['custom_unread'] ?? 0,
|
|
);
|
|
}
|