toJson method
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) {
return {
"@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(),
};
}