/* 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 { TttHistory200ResponsePayload } from './TttHistory200ResponsePayload';
import {
    TttHistory200ResponsePayloadFromJSON,
    TttHistory200ResponsePayloadFromJSONTyped,
    TttHistory200ResponsePayloadToJSON,
    TttHistory200ResponsePayloadToJSONTyped,
} from './TttHistory200ResponsePayload';

/**
 * 
 * @export
 * @interface TttHistory200Response
 */
export interface TttHistory200Response {
    /**
     * 
     * @type {string}
     * @memberof TttHistory200Response
     */
    kind: TttHistory200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof TttHistory200Response
     */
    msg: TttHistory200ResponseMsgEnum;
    /**
     * 
     * @type {TttHistory200ResponsePayload}
     * @memberof TttHistory200Response
     */
    payload: TttHistory200ResponsePayload;
}


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

/**
 * @export
 */
export const TttHistory200ResponseMsgEnum = {
    TtthistorySuccess: 'ttthistory.success'
} as const;
export type TttHistory200ResponseMsgEnum = typeof TttHistory200ResponseMsgEnum[keyof typeof TttHistory200ResponseMsgEnum];


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

export function TttHistory200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TttHistory200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': TttHistory200ResponsePayloadFromJSON(json['payload']),
    };
}

export function TttHistory200ResponseToJSON(json: any): TttHistory200Response {
    return TttHistory200ResponseToJSONTyped(json, false);
}

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

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

