toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  '@type': CONSTRUCTOR,
  'chat_id': chatId,
  'forum_topic_id': forumTopicId,
  'is_pinned': isPinned,
  'last_read_inbox_message_id': lastReadInboxMessageId,
  'last_read_outbox_message_id': lastReadOutboxMessageId,
  'unread_mention_count': unreadMentionCount,
  'unread_reaction_count': unreadReactionCount,
  'unread_poll_vote_count': unreadPollVoteCount,
  'notification_settings': notificationSettings.toJson(),
  'draft_message': draftMessage?.toJson(),
};