/* 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 ChatTest200ResponsePayload
 */
export interface ChatTest200ResponsePayload {
    /**
     * 
     * @type {string}
     * @memberof ChatTest200ResponsePayload
     */
    name: string;
    /**
     * 
     * @type {string}
     * @memberof ChatTest200ResponsePayload
     */
    id: string;
    /**
     * 
     * @type {boolean}
     * @memberof ChatTest200ResponsePayload
     */
    guest: boolean;
}

/**
 * Check if a given object implements the ChatTest200ResponsePayload interface.
 */
export function instanceOfChatTest200ResponsePayload(value: object): value is ChatTest200ResponsePayload {
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('guest' in value) || value['guest'] === undefined) return false;
    return true;
}

export function ChatTest200ResponsePayloadFromJSON(json: any): ChatTest200ResponsePayload {
    return ChatTest200ResponsePayloadFromJSONTyped(json, false);
}

export function ChatTest200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatTest200ResponsePayload {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'],
        'id': json['id'],
        'guest': json['guest'],
    };
}

export function ChatTest200ResponsePayloadToJSON(json: any): ChatTest200ResponsePayload {
    return ChatTest200ResponsePayloadToJSONTyped(json, false);
}

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

    return {
        
        'name': value['name'],
        'id': value['id'],
        'guest': value['guest'],
    };
}

