/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { IdentityProviderFromJSON, IdentityProviderToJSON, } from './IdentityProvider';
/**
 * Check if a given object implements the Realm interface.
 */
export function instanceOfRealm(value) {
    return true;
}
export function RealmFromJSON(json) {
    return RealmFromJSONTyped(json, false);
}
export function RealmFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'name': json['name'] == null ? undefined : json['name'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'identityProvider': json['identityProvider'] == null ? undefined : (json['identityProvider'].map(IdentityProviderFromJSON)),
    };
}
export function RealmToJSON(json) {
    return RealmToJSONTyped(json, false);
}
export function RealmToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'name': value['name'],
        'createdOn': value['createdOn'],
        'identityProvider': value['identityProvider'] == null ? undefined : (value['identityProvider'].map(IdentityProviderToJSON)),
    };
}
//# sourceMappingURL=Realm.js.map