/* 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 { PongHistory200ResponsePayload } from './PongHistory200ResponsePayload';
import {
    PongHistory200ResponsePayloadFromJSON,
    PongHistory200ResponsePayloadFromJSONTyped,
    PongHistory200ResponsePayloadToJSON,
    PongHistory200ResponsePayloadToJSONTyped,
} from './PongHistory200ResponsePayload';

/**
 * 
 * @export
 * @interface PongHistory200Response
 */
export interface PongHistory200Response {
    /**
     * 
     * @type {string}
     * @memberof PongHistory200Response
     */
    kind: PongHistory200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof PongHistory200Response
     */
    msg: PongHistory200ResponseMsgEnum;
    /**
     * 
     * @type {PongHistory200ResponsePayload}
     * @memberof PongHistory200Response
     */
    payload: PongHistory200ResponsePayload;
}


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

/**
 * @export
 */
export const PongHistory200ResponseMsgEnum = {
    PonghistorySuccess: 'ponghistory.success'
} as const;
export type PongHistory200ResponseMsgEnum = typeof PongHistory200ResponseMsgEnum[keyof typeof PongHistory200ResponseMsgEnum];


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

export function PongHistory200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PongHistory200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': PongHistory200ResponsePayloadFromJSON(json['payload']),
    };
}

export function PongHistory200ResponseToJSON(json: any): PongHistory200Response {
    return PongHistory200ResponseToJSONTyped(json, false);
}

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

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

