/* tslint:disable */
/* eslint-disable */
/**
 * @fastify/swagger
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 9.6.1
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface LoginOtp401Response
 */
export interface LoginOtp401Response {
    /**
     * 
     * @type {string}
     * @memberof LoginOtp401Response
     */
    kind: LoginOtp401ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof LoginOtp401Response
     */
    msg: LoginOtp401ResponseMsgEnum;
}


/**
 * @export
 */
export const LoginOtp401ResponseKindEnum = {
    Failed: 'failed'
} as const;
export type LoginOtp401ResponseKindEnum = typeof LoginOtp401ResponseKindEnum[keyof typeof LoginOtp401ResponseKindEnum];

/**
 * @export
 */
export const LoginOtp401ResponseMsgEnum = {
    OtpFailedNoSecret: 'otp.failed.noSecret'
} as const;
export type LoginOtp401ResponseMsgEnum = typeof LoginOtp401ResponseMsgEnum[keyof typeof LoginOtp401ResponseMsgEnum];


/**
 * Check if a given object implements the LoginOtp401Response interface.
 */
export function instanceOfLoginOtp401Response(value: object): value is LoginOtp401Response {
    if (!('kind' in value) || value['kind'] === undefined) return false;
    if (!('msg' in value) || value['msg'] === undefined) return false;
    return true;
}

export function LoginOtp401ResponseFromJSON(json: any): LoginOtp401Response {
    return LoginOtp401ResponseFromJSONTyped(json, false);
}

export function LoginOtp401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtp401Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
    };
}

export function LoginOtp401ResponseToJSON(json: any): LoginOtp401Response {
    return LoginOtp401ResponseToJSONTyped(json, false);
}

export function LoginOtp401ResponseToJSONTyped(value?: LoginOtp401Response | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'kind': value['kind'],
        'msg': value['msg'],
    };
}

