/* 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 LoginOtp408Response
 */
export interface LoginOtp408Response {
    /**
     * 
     * @type {string}
     * @memberof LoginOtp408Response
     */
    kind: LoginOtp408ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof LoginOtp408Response
     */
    msg: LoginOtp408ResponseMsgEnum;
}


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

/**
 * @export
 */
export const LoginOtp408ResponseMsgEnum = {
    OtpFailedTimeout: 'otp.failed.timeout'
} as const;
export type LoginOtp408ResponseMsgEnum = typeof LoginOtp408ResponseMsgEnum[keyof typeof LoginOtp408ResponseMsgEnum];


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

export function LoginOtp408ResponseFromJSON(json: any): LoginOtp408Response {
    return LoginOtp408ResponseFromJSONTyped(json, false);
}

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

export function LoginOtp408ResponseToJSON(json: any): LoginOtp408Response {
    return LoginOtp408ResponseToJSONTyped(json, false);
}

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

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

