/* 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 TwoFactorAuthTokenConcreteTypeEnum = {
    org_sagebionetworks_repo_model_auth_TwoFactorAuthToken: 'org.sagebionetworks.repo.model.auth.TwoFactorAuthToken'
};
/**
 * @export
 */
export const TwoFactorAuthTokenContextEnum = {
    AUTHENTICATION: 'AUTHENTICATION',
    PASSWORD_CHANGE: 'PASSWORD_CHANGE'
};
/**
 * Check if a given object implements the TwoFactorAuthToken interface.
 */
export function instanceOfTwoFactorAuthToken(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(TwoFactorAuthTokenConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function TwoFactorAuthTokenFromJSON(json) {
    return TwoFactorAuthTokenFromJSONTyped(json, false);
}
export function TwoFactorAuthTokenFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'hmac': json['hmac'] == null ? undefined : json['hmac'],
        'version': json['version'] == null ? undefined : json['version'],
        'expiresOn': json['expiresOn'] == null ? undefined : json['expiresOn'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'userId': json['userId'] == null ? undefined : json['userId'],
        'context': json['context'] == null ? undefined : json['context'],
    };
}
export function TwoFactorAuthTokenToJSON(json) {
    return TwoFactorAuthTokenToJSONTyped(json, false);
}
export function TwoFactorAuthTokenToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'hmac': value['hmac'],
        'version': value['version'],
        'expiresOn': value['expiresOn'],
        'createdOn': value['createdOn'],
        'userId': value['userId'],
        'context': value['context'],
    };
}
//# sourceMappingURL=TwoFactorAuthToken.js.map