/* 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 OAuthValidationRequestProviderEnum = {
    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 OAuthValidationRequest interface.
 */
export function instanceOfOAuthValidationRequest(value) {
    return true;
}
export function OAuthValidationRequestFromJSON(json) {
    return OAuthValidationRequestFromJSONTyped(json, false);
}
export function OAuthValidationRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'provider': json['provider'] == null ? undefined : json['provider'],
        'authenticationCode': json['authenticationCode'] == null ? undefined : json['authenticationCode'],
        'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
    };
}
export function OAuthValidationRequestToJSON(json) {
    return OAuthValidationRequestToJSONTyped(json, false);
}
export function OAuthValidationRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'provider': value['provider'],
        'authenticationCode': value['authenticationCode'],
        'redirectUrl': value['redirectUrl'],
    };
}
//# sourceMappingURL=OAuthValidationRequest.js.map