/* 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 NewUserOauthProviderEnum = {
    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 NewUser interface.
 */
export function instanceOfNewUser(value) {
    return true;
}
export function NewUserFromJSON(json) {
    return NewUserFromJSONTyped(json, false);
}
export function NewUserFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'email': json['email'] == null ? undefined : json['email'],
        'firstName': json['firstName'] == null ? undefined : json['firstName'],
        'lastName': json['lastName'] == null ? undefined : json['lastName'],
        'userName': json['userName'] == null ? undefined : json['userName'],
        'oauthProvider': json['oauthProvider'] == null ? undefined : json['oauthProvider'],
        'subject': json['subject'] == null ? undefined : json['subject'],
        'encodedMembershipInvtnSignedToken': json['encodedMembershipInvtnSignedToken'] == null ? undefined : json['encodedMembershipInvtnSignedToken'],
    };
}
export function NewUserToJSON(json) {
    return NewUserToJSONTyped(json, false);
}
export function NewUserToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'email': value['email'],
        'firstName': value['firstName'],
        'lastName': value['lastName'],
        'userName': value['userName'],
        'oauthProvider': value['oauthProvider'],
        'subject': value['subject'],
        'encodedMembershipInvtnSignedToken': value['encodedMembershipInvtnSignedToken'],
    };
}
//# sourceMappingURL=NewUser.js.map