Skip to content

The platform for continuously improving AI agents.

2.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';
import type { PreparationEdgeKindEnum } from './PreparationEdgeKindEnum';
import {
    PreparationEdgeKindEnumFromJSON,
    PreparationEdgeKindEnumFromJSONTyped,
    PreparationEdgeKindEnumToJSON,
    PreparationEdgeKindEnumToJSONTyped,
} from './PreparationEdgeKindEnum';

/**
 *
 * @export
 * @interface PreparationEdge
 */
export interface PreparationEdge {
    /**
     *
     * @type {string}
     * @memberof PreparationEdge
     */
    source: string;
    /**
     *
     * @type {string}
     * @memberof PreparationEdge
     */
    target: string;
    /**
     *
     * @type {PreparationEdgeKindEnum}
     * @memberof PreparationEdge
     */
    kind: PreparationEdgeKindEnum;
    /**
     *
     * @type {string}
     * @memberof PreparationEdge
     */
    value: string;
}



/**
 * Check if a given object implements the PreparationEdge interface.
 */
export function instanceOfPreparationEdge(value: object): value is PreparationEdge {
    if (!('source' in value) || value['source'] === undefined) return false;
    if (!('target' in value) || value['target'] === undefined) return false;
    if (!('kind' in value) || value['kind'] === undefined) return false;
    if (!('value' in value) || value['value'] === undefined) return false;
    return true;
}

export function PreparationEdgeFromJSON(json: any): PreparationEdge {
    return PreparationEdgeFromJSONTyped(json, false);
}

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

        'source': json['source'],
        'target': json['target'],
        'kind': PreparationEdgeKindEnumFromJSON(json['kind']),
        'value': json['value'],
    };
}

export function PreparationEdgeToJSON(json: any): PreparationEdge {
    return PreparationEdgeToJSONTyped(json, false);
}

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

    return {

        'source': value['source'],
        'target': value['target'],
        'kind': PreparationEdgeKindEnumToJSON(value['kind']),
        'value': value['value'],
    };
}