/* 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 { PasswordResetSignedTokenFromJSON, PasswordResetSignedTokenToJSON, } from './PasswordResetSignedToken';
/**
 * @export
 */
export const ChangePasswordWithTokenConcreteTypeEnum = {
    org_sagebionetworks_repo_model_auth_ChangePasswordWithToken: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithToken'
};
/**
 * Check if a given object implements the ChangePasswordWithToken interface.
 */
export function instanceOfChangePasswordWithToken(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ChangePasswordWithTokenConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function ChangePasswordWithTokenFromJSON(json) {
    return ChangePasswordWithTokenFromJSONTyped(json, false);
}
export function ChangePasswordWithTokenFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'newPassword': json['newPassword'] == null ? undefined : json['newPassword'],
        'concreteType': json['concreteType'],
        'passwordChangeToken': json['passwordChangeToken'] == null ? undefined : PasswordResetSignedTokenFromJSON(json['passwordChangeToken']),
    };
}
export function ChangePasswordWithTokenToJSON(json) {
    return ChangePasswordWithTokenToJSONTyped(json, false);
}
export function ChangePasswordWithTokenToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'newPassword': value['newPassword'],
        'concreteType': value['concreteType'],
        'passwordChangeToken': PasswordResetSignedTokenToJSON(value['passwordChangeToken']),
    };
}
//# sourceMappingURL=ChangePasswordWithToken.js.map