toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'photo': photo?.toJson(),
'description': description,
'member_count': memberCount,
'administrator_count': administratorCount,
'restricted_count': restrictedCount,
'banned_count': bannedCount,
'linked_chat_id': linkedChatId,
'slow_mode_delay': slowModeDelay,
'slow_mode_delay_expires_in': slowModeDelayExpiresIn,
'can_get_members': canGetMembers,
'has_hidden_members': hasHiddenMembers,
'can_hide_members': canHideMembers,
'can_set_sticker_set': canSetStickerSet,
'can_set_location': canSetLocation,
'can_get_statistics': canGetStatistics,
'can_toggle_aggressive_anti_spam': canToggleAggressiveAntiSpam,
'is_all_history_available': isAllHistoryAvailable,
'has_aggressive_anti_spam_enabled': hasAggressiveAntiSpamEnabled,
'has_pinned_stories': hasPinnedStories,
'my_boost_count': myBoostCount,
'unrestrict_boost_count': unrestrictBoostCount,
'sticker_set_id': stickerSetId.toString(),
'custom_emoji_sticker_set_id': customEmojiStickerSetId.toString(),
'location': location?.toJson(),
'invite_link': inviteLink?.toJson(),
'bot_commands': [for (final e in botCommands) e.toJson()],
'upgraded_from_basic_group_id': upgradedFromBasicGroupId,
'upgraded_from_max_message_id': upgradedFromMaxMessageId,
};