toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'can_add_offer': canAddOffer,
'can_add_tasks': canAddTasks,
'can_be_approved': canBeApproved,
'can_be_copied': canBeCopied,
'can_be_copied_to_secret_chat': canBeCopiedToSecretChat,
'can_be_declined': canBeDeclined,
'can_be_deleted_only_for_self': canBeDeletedOnlyForSelf,
'can_be_deleted_for_all_users': canBeDeletedForAllUsers,
'can_be_edited': canBeEdited,
'can_be_forwarded': canBeForwarded,
'can_be_paid': canBePaid,
'can_be_pinned': canBePinned,
'can_be_replied': canBeReplied,
'can_be_replied_in_another_chat': canBeRepliedInAnotherChat,
'can_be_saved': canBeSaved,
'can_be_shared_in_story': canBeSharedInStory,
'can_delete_reactions': canDeleteReactions,
'can_edit_media': canEditMedia,
'can_edit_scheduling_state': canEditSchedulingState,
'can_edit_suggested_post_info': canEditSuggestedPostInfo,
'can_get_author': canGetAuthor,
'can_get_embedding_code': canGetEmbeddingCode,
'can_get_link': canGetLink,
'can_get_media_timestamp_links': canGetMediaTimestampLinks,
'can_get_message_thread': canGetMessageThread,
'can_get_poll_vote_statistics': canGetPollVoteStatistics,
'can_get_read_date': canGetReadDate,
'can_get_statistics': canGetStatistics,
'can_get_video_advertisements': canGetVideoAdvertisements,
'can_get_viewers': canGetViewers,
'can_mark_tasks_as_done': canMarkTasksAsDone,
'can_recognize_speech': canRecognizeSpeech,
'can_report_chat': canReportChat,
'can_report_reactions': canReportReactions,
'can_report_supergroup_spam': canReportSupergroupSpam,
'can_set_fact_check': canSetFactCheck,
'has_protected_content_by_current_user': hasProtectedContentByCurrentUser,
'has_protected_content_by_other_user': hasProtectedContentByOtherUser,
'need_show_statistics': needShowStatistics,
'@type': constructor,
};