/* 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 LoginOtp400Response
 */
export interface LoginOtp400Response {
    /**
     * 
     * @type {string}
     * @memberof LoginOtp400Response
     */
    kind: LoginOtp400ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof LoginOtp400Response
     */
    msg: LoginOtp400ResponseMsgEnum;
}


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

/**
 * @export
 */
export const LoginOtp400ResponseMsgEnum = {
    OtpFailedInvalid: 'otp.failed.invalid'
} as const;
export type LoginOtp400ResponseMsgEnum = typeof LoginOtp400ResponseMsgEnum[keyof typeof LoginOtp400ResponseMsgEnum];


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

export function LoginOtp400ResponseFromJSON(json: any): LoginOtp400Response {
    return LoginOtp400ResponseFromJSONTyped(json, false);
}

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

export function LoginOtp400ResponseToJSON(json: any): LoginOtp400Response {
    return LoginOtp400ResponseToJSONTyped(json, false);
}

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

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

