Skip to content

The platform for continuously improving AI agents.

2.2 KB
Raw Blame
/* tslint:disable */
/* eslint-disable */
/**
 * Overbae API
 * Backend API for the Overclaw / Overmind platform.
 *
 * The version of the OpenAPI document: 2.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 ChatQuestion
 */
export interface ChatQuestion {
    /**
     *
     * @type {string}
     * @memberof ChatQuestion
     */
    id: string;
    /**
     *
     * @type {string}
     * @memberof ChatQuestion
     */
    question: string;
    /**
     *
     * @type {Array<string>}
     * @memberof ChatQuestion
     */
    options: Array<string>;
    /**
     *
     * @type {boolean}
     * @memberof ChatQuestion
     */
    multiSelect: boolean;
}

/**
 * Check if a given object implements the ChatQuestion interface.
 */
export function instanceOfChatQuestion(value: object): value is ChatQuestion {
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('question' in value) || value['question'] === undefined) return false;
    if (!('options' in value) || value['options'] === undefined) return false;
    if (!('multiSelect' in value) || value['multiSelect'] === undefined) return false;
    return true;
}

export function ChatQuestionFromJSON(json: any): ChatQuestion {
    return ChatQuestionFromJSONTyped(json, false);
}

export function ChatQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatQuestion {
    if (json == null) {
        return json;
    }
    return {

        'id': json['id'],
        'question': json['question'],
        'options': json['options'],
        'multiSelect': json['multi_select'],
    };
}

export function ChatQuestionToJSON(json: any): ChatQuestion {
    return ChatQuestionToJSONTyped(json, false);
}

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

    return {

        'id': value['id'],
        'question': value['question'],
        'options': value['options'],
        'multi_select': value['multiSelect'],
    };
}