/* 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 OAuthUrlRequestProviderEnum = {
    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 OAuthUrlRequest interface.
 */
export function instanceOfOAuthUrlRequest(value) {
    return true;
}
export function OAuthUrlRequestFromJSON(json) {
    return OAuthUrlRequestFromJSONTyped(json, false);
}
export function OAuthUrlRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'provider': json['provider'] == null ? undefined : json['provider'],
        'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
        'state': json['state'] == null ? undefined : json['state'],
    };
}
export function OAuthUrlRequestToJSON(json) {
    return OAuthUrlRequestToJSONTyped(json, false);
}
export function OAuthUrlRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'provider': value['provider'],
        'redirectUrl': value['redirectUrl'],
        'state': value['state'],
    };
}
//# sourceMappingURL=OAuthUrlRequest.js.map