The platform for continuously improving AI agents.
/* 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 { PreparationNode } from './PreparationNode';
import {
PreparationNodeFromJSON,
PreparationNodeFromJSONTyped,
PreparationNodeToJSON,
PreparationNodeToJSONTyped,
} from './PreparationNode';
import type { PreparationEdge } from './PreparationEdge';
import {
PreparationEdgeFromJSON,
PreparationEdgeFromJSONTyped,
PreparationEdgeToJSON,
PreparationEdgeToJSONTyped,
} from './PreparationEdge';
/**
*
* @export
* @interface DatasetPreparation
*/
export interface DatasetPreparation {
/**
*
* @type {string}
* @memberof DatasetPreparation
*/
selected: string | null;
/**
*
* @type {Array<PreparationNode>}
* @memberof DatasetPreparation
*/
nodes: Array<PreparationNode>;
/**
*
* @type {Array<PreparationEdge>}
* @memberof DatasetPreparation
*/
edges: Array<PreparationEdge>;
}
/**
* Check if a given object implements the DatasetPreparation interface.
*/
export function instanceOfDatasetPreparation(value: object): value is DatasetPreparation {
if (!('selected' in value) || value['selected'] === undefined) return false;
if (!('nodes' in value) || value['nodes'] === undefined) return false;
if (!('edges' in value) || value['edges'] === undefined) return false;
return true;
}
export function DatasetPreparationFromJSON(json: any): DatasetPreparation {
return DatasetPreparationFromJSONTyped(json, false);
}
export function DatasetPreparationFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetPreparation {
if (json == null) {
return json;
}
return {
'selected': json['selected'],
'nodes': ((json['nodes'] as Array<any>).map(PreparationNodeFromJSON)),
'edges': ((json['edges'] as Array<any>).map(PreparationEdgeFromJSON)),
};
}
export function DatasetPreparationToJSON(json: any): DatasetPreparation {
return DatasetPreparationToJSONTyped(json, false);
}
export function DatasetPreparationToJSONTyped(value?: DatasetPreparation | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'selected': value['selected'],
'nodes': ((value['nodes'] as Array<any>).map(PreparationNodeToJSON)),
'edges': ((value['edges'] as Array<any>).map(PreparationEdgeToJSON)),
};
}