/* 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.
 */
import { ChangePasswordWithTwoFactorAuthTokenFromJSONTyped, ChangePasswordWithTwoFactorAuthTokenToJSON, } from './ChangePasswordWithTwoFactorAuthToken';
import { TwoFactorAuthLoginRequestFromJSONTyped, TwoFactorAuthLoginRequestToJSON, } from './TwoFactorAuthLoginRequest';
export function HasTwoFactorAuthTokenFromJSON(json) {
    return HasTwoFactorAuthTokenFromJSONTyped(json, false);
}
export function HasTwoFactorAuthTokenFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.auth.ChangePasswordWithTwoFactorAuthToken':
            return Object.assign({}, ChangePasswordWithTwoFactorAuthTokenFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithTwoFactorAuthToken' });
        case 'org.sagebionetworks.repo.model.auth.TwoFactorAuthLoginRequest':
            return Object.assign({}, TwoFactorAuthLoginRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.auth.TwoFactorAuthLoginRequest' });
        default:
            return json;
    }
}
export function HasTwoFactorAuthTokenToJSON(json) {
    return HasTwoFactorAuthTokenToJSONTyped(json, false);
}
export function HasTwoFactorAuthTokenToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.auth.ChangePasswordWithTwoFactorAuthToken':
            return Object.assign({}, ChangePasswordWithTwoFactorAuthTokenToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithTwoFactorAuthToken' });
        case 'org.sagebionetworks.repo.model.auth.TwoFactorAuthLoginRequest':
            return Object.assign({}, TwoFactorAuthLoginRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.auth.TwoFactorAuthLoginRequest' });
        default:
            return value;
    }
}
//# sourceMappingURL=HasTwoFactorAuthToken.js.map