/* 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.
 */
/**
 * @export
 */
export const OAuthIdentityProviderConcreteTypeEnum = {
    org_sagebionetworks_repo_model_auth_OAuthIdentityProvider: 'org.sagebionetworks.repo.model.auth.OAuthIdentityProvider'
};
/**
 * @export
 */
export const OAuthIdentityProviderProviderEnum = {
    GOOGLE_OAUTH_2_0: 'GOOGLE_OAUTH_2_0',
    ORCID: 'ORCID',
    ARCUS_BIOSCIENCES: 'ARCUS_BIOSCIENCES',
    SAGE_BIONETWORKS: 'SAGE_BIONETWORKS',
    NIH_RESEARCHER_AUTH_SERVICE: 'NIH_RESEARCHER_AUTH_SERVICE'
};
/**
 * Check if a given object implements the OAuthIdentityProvider interface.
 */
export function instanceOfOAuthIdentityProvider(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(OAuthIdentityProviderConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function OAuthIdentityProviderFromJSON(json) {
    return OAuthIdentityProviderFromJSONTyped(json, false);
}
export function OAuthIdentityProviderFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'provider': json['provider'] == null ? undefined : json['provider'],
    };
}
export function OAuthIdentityProviderToJSON(json) {
    return OAuthIdentityProviderToJSONTyped(json, false);
}
export function OAuthIdentityProviderToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'provider': value['provider'],
    };
}
//# sourceMappingURL=OAuthIdentityProvider.js.map