/* 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 { GetUser200ResponsePayload } from './GetUser200ResponsePayload'; import { GetUser200ResponsePayloadFromJSON, GetUser200ResponsePayloadFromJSONTyped, GetUser200ResponsePayloadToJSON, GetUser200ResponsePayloadToJSONTyped, } from './GetUser200ResponsePayload'; /** * * @export * @interface ChatTest200Response */ export interface ChatTest200Response { /** * * @type {string} * @memberof ChatTest200Response */ kind: ChatTest200ResponseKindEnum; /** * * @type {string} * @memberof ChatTest200Response */ msg: ChatTest200ResponseMsgEnum; /** * * @type {GetUser200ResponsePayload} * @memberof ChatTest200Response */ payload: GetUser200ResponsePayload; } /** * @export */ export const ChatTest200ResponseKindEnum = { Success: 'success' } as const; export type ChatTest200ResponseKindEnum = typeof ChatTest200ResponseKindEnum[keyof typeof ChatTest200ResponseKindEnum]; /** * @export */ export const ChatTest200ResponseMsgEnum = { ChatSuccess: 'chat.success' } as const; export type ChatTest200ResponseMsgEnum = typeof ChatTest200ResponseMsgEnum[keyof typeof ChatTest200ResponseMsgEnum]; /** * Check if a given object implements the ChatTest200Response interface. */ export function instanceOfChatTest200Response(value: object): value is ChatTest200Response { 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 ChatTest200ResponseFromJSON(json: any): ChatTest200Response { return ChatTest200ResponseFromJSONTyped(json, false); } export function ChatTest200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatTest200Response { if (json == null) { return json; } return { 'kind': json['kind'], 'msg': json['msg'], 'payload': GetUser200ResponsePayloadFromJSON(json['payload']), }; } export function ChatTest200ResponseToJSON(json: any): ChatTest200Response { return ChatTest200ResponseToJSONTyped(json, false); } export function ChatTest200ResponseToJSONTyped(value?: ChatTest200Response | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'kind': value['kind'], 'msg': value['msg'], 'payload': GetUser200ResponsePayloadToJSON(value['payload']), }; }