/* 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';
import type { EnableOtp200ResponsePayload } from './EnableOtp200ResponsePayload';
import {
    EnableOtp200ResponsePayloadFromJSON,
    EnableOtp200ResponsePayloadFromJSONTyped,
    EnableOtp200ResponsePayloadToJSON,
    EnableOtp200ResponsePayloadToJSONTyped,
} from './EnableOtp200ResponsePayload';

/**
 * 
 * @export
 * @interface EnableOtp200Response
 */
export interface EnableOtp200Response {
    /**
     * 
     * @type {string}
     * @memberof EnableOtp200Response
     */
    kind: EnableOtp200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof EnableOtp200Response
     */
    msg: EnableOtp200ResponseMsgEnum;
    /**
     * 
     * @type {EnableOtp200ResponsePayload}
     * @memberof EnableOtp200Response
     */
    payload: EnableOtp200ResponsePayload;
}


/**
 * @export
 */
export const EnableOtp200ResponseKindEnum = {
    Success: 'success'
} as const;
export type EnableOtp200ResponseKindEnum = typeof EnableOtp200ResponseKindEnum[keyof typeof EnableOtp200ResponseKindEnum];

/**
 * @export
 */
export const EnableOtp200ResponseMsgEnum = {
    EnableOtpSuccess: 'enableOtp.success'
} as const;
export type EnableOtp200ResponseMsgEnum = typeof EnableOtp200ResponseMsgEnum[keyof typeof EnableOtp200ResponseMsgEnum];


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

export function EnableOtp200ResponseFromJSON(json: any): EnableOtp200Response {
    return EnableOtp200ResponseFromJSONTyped(json, false);
}

export function EnableOtp200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnableOtp200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': EnableOtp200ResponsePayloadFromJSON(json['payload']),
    };
}

export function EnableOtp200ResponseToJSON(json: any): EnableOtp200Response {
    return EnableOtp200ResponseToJSONTyped(json, false);
}

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

    return {
        
        'kind': value['kind'],
        'msg': value['msg'],
        'payload': EnableOtp200ResponsePayloadToJSON(value['payload']),
    };
}

