UpdateForumTopic.fromJson constructor
Parses a UpdateForumTopic from TDLib JSON.
Implementation
factory UpdateForumTopic.fromJson(Map<String, dynamic> json) =>
UpdateForumTopic(
chatId: _readInt(json['chat_id']),
forumTopicId: _readInt(json['forum_topic_id']),
isPinned: _readBool(json['is_pinned']),
lastReadInboxMessageId: _readInt(json['last_read_inbox_message_id']),
lastReadOutboxMessageId: _readInt(json['last_read_outbox_message_id']),
unreadMentionCount: _readInt(json['unread_mention_count']),
unreadReactionCount: _readInt(json['unread_reaction_count']),
unreadPollVoteCount: _readInt(json['unread_poll_vote_count']),
notificationSettings: _readObject(
json['notification_settings'],
ChatNotificationSettings.fromJson,
),
draftMessage: _readOptional(
json['draft_message'],
DraftMessage.fromJson,
),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);