toJson method
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) {
return {
"@type": CONSTRUCTOR,
"can_send_messages": canSendMessages,
"can_send_media_messages": canSendMediaMessages,
"can_send_polls": canSendPolls,
"can_send_other_messages": canSendOtherMessages,
"can_add_web_page_previews": canAddWebPagePreviews,
"can_change_info": canChangeInfo,
"can_invite_users": canInviteUsers,
"can_pin_messages": canPinMessages,
};
}