toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'photo': photo.toJson(),
'chats': [for (final e in chats) e.toJson()],
'administrator_count': administratorCount,
'banned_count': bannedCount,
'add_chat_request_count': addChatRequestCount,
};