NoticeCount.from constructor
NoticeCount.from(
- Map<String, dynamic> data
)
Implementation
NoticeCount.from(Map<String, dynamic> data)
: notifyStatus = data['userNotifyStatus'] != 0,
count = data['unreadNotificationCnt'] ?? 0,
reply = data['unreadReplyNotificationCnt'] ?? 0,
point = data['unreadPointNotificationCnt'] ?? 0,
at = data['unreadAtNotificationCnt'] ?? 0,
broadcast = data['unreadBroadcastNotificationCnt'] ?? 0,
sysAnnounce = data['unreadSysAnnounceNotificationCnt'] ?? 0,
newFollower = data['unreadNewFollowerNotificationCnt'] ?? 0,
following = data['unreadFollowingNotificationCnt'] ?? 0,
commented = data['unreadCommentedNotificationCnt'] ?? 0;