/* 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 { StatusOtp200ResponseAnyOf } from './StatusOtp200ResponseAnyOf';
import {
    StatusOtp200ResponseAnyOfFromJSON,
    StatusOtp200ResponseAnyOfFromJSONTyped,
    StatusOtp200ResponseAnyOfToJSON,
    StatusOtp200ResponseAnyOfToJSONTyped,
} from './StatusOtp200ResponseAnyOf';
import type { StatusOtp200ResponseAnyOfPayload } from './StatusOtp200ResponseAnyOfPayload';
import {
    StatusOtp200ResponseAnyOfPayloadFromJSON,
    StatusOtp200ResponseAnyOfPayloadFromJSONTyped,
    StatusOtp200ResponseAnyOfPayloadToJSON,
    StatusOtp200ResponseAnyOfPayloadToJSONTyped,
} from './StatusOtp200ResponseAnyOfPayload';
import type { StatusOtp200ResponseAnyOf1 } from './StatusOtp200ResponseAnyOf1';
import {
    StatusOtp200ResponseAnyOf1FromJSON,
    StatusOtp200ResponseAnyOf1FromJSONTyped,
    StatusOtp200ResponseAnyOf1ToJSON,
    StatusOtp200ResponseAnyOf1ToJSONTyped,
} from './StatusOtp200ResponseAnyOf1';

/**
 * 
 * @export
 * @interface StatusOtp200Response
 */
export interface StatusOtp200Response {
    /**
     * 
     * @type {string}
     * @memberof StatusOtp200Response
     */
    kind: StatusOtp200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof StatusOtp200Response
     */
    msg: StatusOtp200ResponseMsgEnum;
    /**
     * 
     * @type {StatusOtp200ResponseAnyOfPayload}
     * @memberof StatusOtp200Response
     */
    payload: StatusOtp200ResponseAnyOfPayload;
}


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

/**
 * @export
 */
export const StatusOtp200ResponseMsgEnum = {
    StatusOtpSuccessDisabled: 'statusOtp.success.disabled'
} as const;
export type StatusOtp200ResponseMsgEnum = typeof StatusOtp200ResponseMsgEnum[keyof typeof StatusOtp200ResponseMsgEnum];


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

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

export function StatusOtp200ResponseToJSON(json: any): StatusOtp200Response {
    return StatusOtp200ResponseToJSONTyped(json, false);
}

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

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

