/* 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';
/**
 * 
 * @export
 * @interface ChatTest500Response
 */
export interface ChatTest500Response {
    /**
     * 
     * @type {string}
     * @memberof ChatTest500Response
     */
    kind: ChatTest500ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof ChatTest500Response
     */
    msg: ChatTest500ResponseMsgEnum;
}


/**
 * @export
 */
export const ChatTest500ResponseKindEnum = {
    Failed: 'failed'
} as const;
export type ChatTest500ResponseKindEnum = typeof ChatTest500ResponseKindEnum[keyof typeof ChatTest500ResponseKindEnum];

/**
 * @export
 */
export const ChatTest500ResponseMsgEnum = {
    ChatFailedGeneric: 'chat.failed.generic'
} as const;
export type ChatTest500ResponseMsgEnum = typeof ChatTest500ResponseMsgEnum[keyof typeof ChatTest500ResponseMsgEnum];


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

export function ChatTest500ResponseFromJSON(json: any): ChatTest500Response {
    return ChatTest500ResponseFromJSONTyped(json, false);
}

export function ChatTest500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatTest500Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
    };
}

export function ChatTest500ResponseToJSON(json: any): ChatTest500Response {
    return ChatTest500ResponseToJSONTyped(json, false);
}

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

    return {
        
        'kind': value['kind'],
        'msg': value['msg'],
    };
}

