/* 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 EnableOtp400Response
 */
export interface EnableOtp400Response {
    /**
     * 
     * @type {string}
     * @memberof EnableOtp400Response
     */
    kind: EnableOtp400ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof EnableOtp400Response
     */
    msg: EnableOtp400ResponseMsgEnum;
}


/**
 * @export
 */
export const EnableOtp400ResponseKindEnum = {
    Failure: 'failure'
} as const;
export type EnableOtp400ResponseKindEnum = typeof EnableOtp400ResponseKindEnum[keyof typeof EnableOtp400ResponseKindEnum];

/**
 * @export
 */
export const EnableOtp400ResponseMsgEnum = {
    EnableOtpFailureGuest: 'enableOtp.failure.guest'
} as const;
export type EnableOtp400ResponseMsgEnum = typeof EnableOtp400ResponseMsgEnum[keyof typeof EnableOtp400ResponseMsgEnum];


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

export function EnableOtp400ResponseFromJSON(json: any): EnableOtp400Response {
    return EnableOtp400ResponseFromJSONTyped(json, false);
}

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

export function EnableOtp400ResponseToJSON(json: any): EnableOtp400Response {
    return EnableOtp400ResponseToJSONTyped(json, false);
}

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

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

