toJson method
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) {
return {
"@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,
"can_set_username": canSetUsername,
"can_set_sticker_set": canSetStickerSet,
"can_set_location": canSetLocation,
"can_get_statistics": canGetStatistics,
"is_all_history_available": isAllHistoryAvailable,
"sticker_set_id": stickerSetId,
"location": location?.toJson(),
"invite_link": inviteLink?.toJson(),
"bot_commands": botCommands.map((i) => i.toJson()).toList(),
"upgraded_from_basic_group_id": upgradedFromBasicGroupId,
"upgraded_from_max_message_id": upgradedFromMaxMessageId,
};
}