/* 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 ChangePasswordWithCurrentPasswordConcreteTypeEnum = {
    org_sagebionetworks_repo_model_auth_ChangePasswordWithCurrentPassword: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithCurrentPassword'
};
/**
 * Check if a given object implements the ChangePasswordWithCurrentPassword interface.
 */
export function instanceOfChangePasswordWithCurrentPassword(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ChangePasswordWithCurrentPasswordConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function ChangePasswordWithCurrentPasswordFromJSON(json) {
    return ChangePasswordWithCurrentPasswordFromJSONTyped(json, false);
}
export function ChangePasswordWithCurrentPasswordFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'newPassword': json['newPassword'] == null ? undefined : json['newPassword'],
        'concreteType': json['concreteType'],
        'username': json['username'] == null ? undefined : json['username'],
        'currentPassword': json['currentPassword'] == null ? undefined : json['currentPassword'],
        'authenticationReceipt': json['authenticationReceipt'] == null ? undefined : json['authenticationReceipt'],
    };
}
export function ChangePasswordWithCurrentPasswordToJSON(json) {
    return ChangePasswordWithCurrentPasswordToJSONTyped(json, false);
}
export function ChangePasswordWithCurrentPasswordToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'newPassword': value['newPassword'],
        'concreteType': value['concreteType'],
        'username': value['username'],
        'currentPassword': value['currentPassword'],
        'authenticationReceipt': value['authenticationReceipt'],
    };
}
//# sourceMappingURL=ChangePasswordWithCurrentPassword.js.map