Skip to content

The platform for continuously improving AI agents.

1.5 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 Fit
 */
export interface Fit {
    /**
     *
     * @type {boolean}
     * @memberof Fit
     */
    ok: boolean;
    /**
     *
     * @type {string}
     * @memberof Fit
     */
    reason: string;
}

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

export function FitFromJSON(json: any): Fit {
    return FitFromJSONTyped(json, false);
}

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

        'ok': json['ok'],
        'reason': json['reason'],
    };
}

export function FitToJSON(json: any): Fit {
    return FitToJSONTyped(json, false);
}

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

    return {

        'ok': value['ok'],
        'reason': value['reason'],
    };
}