/* 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 OAuthAccountCreationRequestProviderEnum = {
    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 OAuthAccountCreationRequest interface.
 */
export function instanceOfOAuthAccountCreationRequest(value) {
    return true;
}
export function OAuthAccountCreationRequestFromJSON(json) {
    return OAuthAccountCreationRequestFromJSONTyped(json, false);
}
export function OAuthAccountCreationRequestFromJSONTyped(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'],
        'userName': json['userName'] == null ? undefined : json['userName'],
    };
}
export function OAuthAccountCreationRequestToJSON(json) {
    return OAuthAccountCreationRequestToJSONTyped(json, false);
}
export function OAuthAccountCreationRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'provider': value['provider'],
        'authenticationCode': value['authenticationCode'],
        'redirectUrl': value['redirectUrl'],
        'userName': value['userName'],
    };
}
//# sourceMappingURL=OAuthAccountCreationRequest.js.map