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 { DeployedModel } from './DeployedModel';
import {
DeployedModelFromJSON,
DeployedModelFromJSONTyped,
DeployedModelToJSON,
DeployedModelToJSONTyped,
} from './DeployedModel';
/**
*
* @export
* @interface PaginatedDeployedModelList
*/
export interface PaginatedDeployedModelList {
/**
*
* @type {number}
* @memberof PaginatedDeployedModelList
*/
count: number;
/**
*
* @type {string}
* @memberof PaginatedDeployedModelList
*/
next?: string | null;
/**
*
* @type {string}
* @memberof PaginatedDeployedModelList
*/
previous?: string | null;
/**
*
* @type {Array<DeployedModel>}
* @memberof PaginatedDeployedModelList
*/
results: Array<DeployedModel>;
}
/**
* Check if a given object implements the PaginatedDeployedModelList interface.
*/
export function instanceOfPaginatedDeployedModelList(value: object): value is PaginatedDeployedModelList {
if (!('count' in value) || value['count'] === undefined) return false;
if (!('results' in value) || value['results'] === undefined) return false;
return true;
}
export function PaginatedDeployedModelListFromJSON(json: any): PaginatedDeployedModelList {
return PaginatedDeployedModelListFromJSONTyped(json, false);
}
export function PaginatedDeployedModelListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedDeployedModelList {
if (json == null) {
return json;
}
return {
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': ((json['results'] as Array<any>).map(DeployedModelFromJSON)),
};
}
export function PaginatedDeployedModelListToJSON(json: any): PaginatedDeployedModelList {
return PaginatedDeployedModelListToJSONTyped(json, false);
}
export function PaginatedDeployedModelListToJSONTyped(value?: PaginatedDeployedModelList | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': ((value['results'] as Array<any>).map(DeployedModelToJSON)),
};
}