/* 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 TwoFactorAuthLoginRequestOtpTypeEnum = {
    TOTP: 'TOTP',
    RECOVERY_CODE: 'RECOVERY_CODE'
};
/**
 * Check if a given object implements the TwoFactorAuthLoginRequest interface.
 */
export function instanceOfTwoFactorAuthLoginRequest(value) {
    return true;
}
export function TwoFactorAuthLoginRequestFromJSON(json) {
    return TwoFactorAuthLoginRequestFromJSONTyped(json, false);
}
export function TwoFactorAuthLoginRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'userId': json['userId'] == null ? undefined : json['userId'],
        'twoFaToken': json['twoFaToken'] == null ? undefined : json['twoFaToken'],
        'otpCode': json['otpCode'] == null ? undefined : json['otpCode'],
        'otpType': json['otpType'] == null ? undefined : json['otpType'],
    };
}
export function TwoFactorAuthLoginRequestToJSON(json) {
    return TwoFactorAuthLoginRequestToJSONTyped(json, false);
}
export function TwoFactorAuthLoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'userId': value['userId'],
        'twoFaToken': value['twoFaToken'],
        'otpCode': value['otpCode'],
        'otpType': value['otpType'],
    };
}
//# sourceMappingURL=TwoFactorAuthLoginRequest.js.map