Skip to content

The platform for continuously improving AI agents.

1.7 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 CancelWork
 */
export interface CancelWork {
    /**
     *
     * @type {number}
     * @memberof CancelWork
     */
    cancelled: number;
    /**
     *
     * @type {string}
     * @memberof CancelWork
     */
    detail: string;
}

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

export function CancelWorkFromJSON(json: any): CancelWork {
    return CancelWorkFromJSONTyped(json, false);
}

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

        'cancelled': json['cancelled'],
        'detail': json['detail'],
    };
}

export function CancelWorkToJSON(json: any): CancelWork {
    return CancelWorkToJSONTyped(json, false);
}

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

    return {

        'cancelled': value['cancelled'],
        'detail': value['detail'],
    };
}