toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
      '@type': CONSTRUCTOR,
      'info': info.toJson(),
      'last_message': lastMessage?.toJson(),
      'is_pinned': isPinned,
      'unread_count': unreadCount,
      'last_read_inbox_message_id': lastReadInboxMessageId,
      'last_read_outbox_message_id': lastReadOutboxMessageId,
      'unread_mention_count': unreadMentionCount,
      'unread_reaction_count': unreadReactionCount,
      'notification_settings': notificationSettings.toJson(),
      'draft_message': draftMessage?.toJson(),
    };