toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'name'] = this.name;
    json[r'slug'] = this.slug;
  if (this.domain != null) {
    json[r'domain'] = this.domain;
  } else {
    json[r'domain'] = null;
  }
  if (this.logoUrl != null) {
    json[r'logoUrl'] = this.logoUrl;
  } else {
    json[r'logoUrl'] = null;
  }
  if (this.samlEnabled != null) {
    json[r'samlEnabled'] = this.samlEnabled;
  } else {
    json[r'samlEnabled'] = null;
  }
  if (this.samlEntityId != null) {
    json[r'samlEntityId'] = this.samlEntityId;
  } else {
    json[r'samlEntityId'] = null;
  }
  if (this.samlSsoUrl != null) {
    json[r'samlSsoUrl'] = this.samlSsoUrl;
  } else {
    json[r'samlSsoUrl'] = null;
  }
  if (this.samlCertificate != null) {
    json[r'samlCertificate'] = this.samlCertificate;
  } else {
    json[r'samlCertificate'] = null;
  }
  if (this.scimEnabled != null) {
    json[r'scimEnabled'] = this.scimEnabled;
  } else {
    json[r'scimEnabled'] = null;
  }
  if (this.scimToken != null) {
    json[r'scimToken'] = this.scimToken;
  } else {
    json[r'scimToken'] = null;
  }
  if (this.scimBaseUrl != null) {
    json[r'scimBaseUrl'] = this.scimBaseUrl;
  } else {
    json[r'scimBaseUrl'] = null;
  }
  if (this.plan != null) {
    json[r'plan'] = this.plan;
  } else {
    json[r'plan'] = null;
  }
  if (this.maxMembers != null) {
    json[r'maxMembers'] = this.maxMembers;
  } else {
    json[r'maxMembers'] = null;
  }
  if (this.domains != null) {
    json[r'domains'] = this.domains;
  } else {
    json[r'domains'] = null;
  }
  if (this.metadata != null) {
    json[r'metadata'] = this.metadata;
  } else {
    json[r'metadata'] = null;
  }
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  if (this.parentTenantId != null) {
    json[r'parentTenantId'] = this.parentTenantId;
  } else {
    json[r'parentTenantId'] = null;
  }
  if (this.rateLimit != null) {
    json[r'rateLimit'] = this.rateLimit;
  } else {
    json[r'rateLimit'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt;
  } else {
    json[r'createdAt'] = null;
  }
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt;
  } else {
    json[r'updatedAt'] = null;
  }
  return json;
}