/* 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 { StatusOtp200ResponseAnyOfPayload } from './StatusOtp200ResponseAnyOfPayload';
import {
    StatusOtp200ResponseAnyOfPayloadFromJSON,
    StatusOtp200ResponseAnyOfPayloadFromJSONTyped,
    StatusOtp200ResponseAnyOfPayloadToJSON,
    StatusOtp200ResponseAnyOfPayloadToJSONTyped,
} from './StatusOtp200ResponseAnyOfPayload';

/**
 * 
 * @export
 * @interface StatusOtp200ResponseAnyOf
 */
export interface StatusOtp200ResponseAnyOf {
    /**
     * 
     * @type {string}
     * @memberof StatusOtp200ResponseAnyOf
     */
    kind: StatusOtp200ResponseAnyOfKindEnum;
    /**
     * 
     * @type {string}
     * @memberof StatusOtp200ResponseAnyOf
     */
    msg: StatusOtp200ResponseAnyOfMsgEnum;
    /**
     * 
     * @type {StatusOtp200ResponseAnyOfPayload}
     * @memberof StatusOtp200ResponseAnyOf
     */
    payload: StatusOtp200ResponseAnyOfPayload;
}


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

/**
 * @export
 */
export const StatusOtp200ResponseAnyOfMsgEnum = {
    StatusOtpSuccessEnabled: 'statusOtp.success.enabled'
} as const;
export type StatusOtp200ResponseAnyOfMsgEnum = typeof StatusOtp200ResponseAnyOfMsgEnum[keyof typeof StatusOtp200ResponseAnyOfMsgEnum];


/**
 * Check if a given object implements the StatusOtp200ResponseAnyOf interface.
 */
export function instanceOfStatusOtp200ResponseAnyOf(value: object): value is StatusOtp200ResponseAnyOf {
    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 StatusOtp200ResponseAnyOfFromJSON(json: any): StatusOtp200ResponseAnyOf {
    return StatusOtp200ResponseAnyOfFromJSONTyped(json, false);
}

export function StatusOtp200ResponseAnyOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusOtp200ResponseAnyOf {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': StatusOtp200ResponseAnyOfPayloadFromJSON(json['payload']),
    };
}

export function StatusOtp200ResponseAnyOfToJSON(json: any): StatusOtp200ResponseAnyOf {
    return StatusOtp200ResponseAnyOfToJSONTyped(json, false);
}

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

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

