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'domain'] = this.domain;
  json[r'active'] = this.active;
  json[r'provider'] = this.provider;
  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;
}