/* tslint:disable */ /* eslint-disable */ /** * ChatGPT Function * Backend for Azure OpenAI integrations * * The version of the OpenAPI document: v1.0.0 * * * 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 Event */ export interface Event { /** * * @type {string} * @memberof Event */ type?: string | null; /** * * @type {string} * @memberof Event */ text?: string | null; /** * * @type {Array} * @memberof Event */ files?: Array | null; /** * * @type {boolean} * @memberof Event */ upload?: boolean | null; /** * * @type {string} * @memberof Event */ user?: string | null; /** * * @type {boolean} * @memberof Event */ displayAsBot?: boolean | null; /** * * @type {string} * @memberof Event */ botId?: string | null; /** * * @type {string} * @memberof Event */ ts?: string | null; /** * * @type {string} * @memberof Event */ channel?: string | null; /** * * @type {string} * @memberof Event */ subtype?: string | null; /** * * @type {string} * @memberof Event */ eventTs?: string | null; /** * * @type {string} * @memberof Event */ channelType?: string | null; } /** * Check if a given object implements the Event interface. */ export function instanceOfEvent(value: object): value is Event { return true; } export function EventFromJSON(json: any): Event { return EventFromJSONTyped(json, false); } export function EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): Event { if (json == null) { return json; } return { 'type': json['type'] == null ? undefined : json['type'], 'text': json['text'] == null ? undefined : json['text'], 'files': json['files'] == null ? undefined : json['files'], 'upload': json['upload'] == null ? undefined : json['upload'], 'user': json['user'] == null ? undefined : json['user'], 'displayAsBot': json['display_as_bot'] == null ? undefined : json['display_as_bot'], 'botId': json['bot_id'] == null ? undefined : json['bot_id'], 'ts': json['ts'] == null ? undefined : json['ts'], 'channel': json['channel'] == null ? undefined : json['channel'], 'subtype': json['subtype'] == null ? undefined : json['subtype'], 'eventTs': json['event_ts'] == null ? undefined : json['event_ts'], 'channelType': json['channel_type'] == null ? undefined : json['channel_type'], }; } export function EventToJSON(json: any): Event { return EventToJSONTyped(json, false); } export function EventToJSONTyped(value?: Event | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'text': value['text'], 'files': value['files'], 'upload': value['upload'], 'user': value['user'], 'display_as_bot': value['displayAsBot'], 'bot_id': value['botId'], 'ts': value['ts'], 'channel': value['channel'], 'subtype': value['subtype'], 'event_ts': value['eventTs'], 'channel_type': value['channelType'], }; }