toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'object'] = this.object;
json[r'id'] = this.id;
json[r'name'] = this.name;
json[r'domain'] = this.domain;
if (this.idpEntityId != null) {
json[r'idp_entity_id'] = this.idpEntityId;
} else {
json[r'idp_entity_id'] = null;
}
if (this.idpSsoUrl != null) {
json[r'idp_sso_url'] = this.idpSsoUrl;
} else {
json[r'idp_sso_url'] = null;
}
if (this.idpCertificate != null) {
json[r'idp_certificate'] = this.idpCertificate;
} else {
json[r'idp_certificate'] = null;
}
if (this.idpMetadataUrl != null) {
json[r'idp_metadata_url'] = this.idpMetadataUrl;
} else {
json[r'idp_metadata_url'] = null;
}
if (this.idpMetadata != null) {
json[r'idp_metadata'] = this.idpMetadata;
} else {
json[r'idp_metadata'] = null;
}
json[r'acs_url'] = this.acsUrl;
json[r'sp_entity_id'] = this.spEntityId;
json[r'sp_metadata_url'] = this.spMetadataUrl;
if (this.organizationId != null) {
json[r'organization_id'] = this.organizationId;
} else {
json[r'organization_id'] = null;
}
if (this.attributeMapping != null) {
json[r'attribute_mapping'] = this.attributeMapping;
} else {
json[r'attribute_mapping'] = null;
}
json[r'active'] = this.active;
json[r'provider'] = this.provider;
json[r'user_count'] = this.userCount;
json[r'sync_user_attributes'] = this.syncUserAttributes;
if (this.allowSubdomains != null) {
json[r'allow_subdomains'] = this.allowSubdomains;
} else {
json[r'allow_subdomains'] = null;
}
if (this.allowIdpInitiated != null) {
json[r'allow_idp_initiated'] = this.allowIdpInitiated;
} else {
json[r'allow_idp_initiated'] = null;
}
if (this.disableAdditionalIdentifications != null) {
json[r'disable_additional_identifications'] =
this.disableAdditionalIdentifications;
} else {
json[r'disable_additional_identifications'] = null;
}
json[r'created_at'] = this.createdAt;
json[r'updated_at'] = this.updatedAt;
return json;
}