toJson method

  1. @override
Map<String, dynamic> toJson ()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "custom_title": this.customTitle,
    "can_be_edited": this.canBeEdited,
    "can_change_info": this.canChangeInfo,
    "can_post_messages": this.canPostMessages,
    "can_edit_messages": this.canEditMessages,
    "can_delete_messages": this.canDeleteMessages,
    "can_invite_users": this.canInviteUsers,
    "can_restrict_members": this.canRestrictMembers,
    "can_pin_messages": this.canPinMessages,
    "can_promote_members": this.canPromoteMembers,
  };
}