toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.enabled != null) {
    json[r'enabled'] = this.enabled;
  } else {
    json[r'enabled'] = null;
  }
  if (this.maxAllowedMemberships != null) {
    json[r'max_allowed_memberships'] = this.maxAllowedMemberships;
  } else {
    json[r'max_allowed_memberships'] = null;
  }
  if (this.adminDeleteEnabled != null) {
    json[r'admin_delete_enabled'] = this.adminDeleteEnabled;
  } else {
    json[r'admin_delete_enabled'] = null;
  }
  if (this.domainsEnabled != null) {
    json[r'domains_enabled'] = this.domainsEnabled;
  } else {
    json[r'domains_enabled'] = null;
  }
  json[r'domains_enrollment_modes'] = this.domainsEnrollmentModes;
  if (this.creatorRoleId != null) {
    json[r'creator_role_id'] = this.creatorRoleId;
  } else {
    json[r'creator_role_id'] = null;
  }
  if (this.domainsDefaultRoleId != null) {
    json[r'domains_default_role_id'] = this.domainsDefaultRoleId;
  } else {
    json[r'domains_default_role_id'] = null;
  }
  return json;
}