toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'object'] = this.object;
json[r'enabled'] = this.enabled;
json[r'max_allowed_memberships'] = this.maxAllowedMemberships;
json[r'max_allowed_roles'] = this.maxAllowedRoles;
if (this.maxRoleSetsAllowed != null) {
json[r'max_role_sets_allowed'] = this.maxRoleSetsAllowed;
} else {
json[r'max_role_sets_allowed'] = null;
}
if (this.maxAllowedPermissions != null) {
json[r'max_allowed_permissions'] = this.maxAllowedPermissions;
} else {
json[r'max_allowed_permissions'] = null;
}
json[r'creator_role'] = this.creatorRole;
json[r'admin_delete_enabled'] = this.adminDeleteEnabled;
json[r'domains_enabled'] = this.domainsEnabled;
if (this.slugDisabled != null) {
json[r'slug_disabled'] = this.slugDisabled;
} else {
json[r'slug_disabled'] = null;
}
json[r'domains_enrollment_modes'] = this.domainsEnrollmentModes;
json[r'domains_default_role'] = this.domainsDefaultRole;
if (this.initialRoleSetKey != null) {
json[r'initial_role_set_key'] = this.initialRoleSetKey;
} else {
json[r'initial_role_set_key'] = null;
}
return json;
}