/* 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 { ChangePasswordWithCurrentPasswordFromJSONTyped, ChangePasswordWithCurrentPasswordToJSON, } from './ChangePasswordWithCurrentPassword';
import { ChangePasswordWithTokenFromJSONTyped, ChangePasswordWithTokenToJSON, } from './ChangePasswordWithToken';
import { ChangePasswordWithTwoFactorAuthTokenFromJSONTyped, ChangePasswordWithTwoFactorAuthTokenToJSON, } from './ChangePasswordWithTwoFactorAuthToken';
export function ChangePasswordInterfaceFromJSON(json) {
    return ChangePasswordInterfaceFromJSONTyped(json, false);
}
export function ChangePasswordInterfaceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.auth.ChangePasswordWithCurrentPassword':
            return Object.assign({}, ChangePasswordWithCurrentPasswordFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithCurrentPassword' });
        case 'org.sagebionetworks.repo.model.auth.ChangePasswordWithToken':
            return Object.assign({}, ChangePasswordWithTokenFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithToken' });
        case 'org.sagebionetworks.repo.model.auth.ChangePasswordWithTwoFactorAuthToken':
            return Object.assign({}, ChangePasswordWithTwoFactorAuthTokenFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithTwoFactorAuthToken' });
        default:
            return json;
    }
}
export function ChangePasswordInterfaceToJSON(json) {
    return ChangePasswordInterfaceToJSONTyped(json, false);
}
export function ChangePasswordInterfaceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.auth.ChangePasswordWithCurrentPassword':
            return Object.assign({}, ChangePasswordWithCurrentPasswordToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithCurrentPassword' });
        case 'org.sagebionetworks.repo.model.auth.ChangePasswordWithToken':
            return Object.assign({}, ChangePasswordWithTokenToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithToken' });
        case 'org.sagebionetworks.repo.model.auth.ChangePasswordWithTwoFactorAuthToken':
            return Object.assign({}, ChangePasswordWithTwoFactorAuthTokenToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithTwoFactorAuthToken' });
        default:
            return value;
    }
}
//# sourceMappingURL=ChangePasswordInterface.js.map