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 { ExperimentList } from './ExperimentList';
import {
ExperimentListFromJSON,
ExperimentListFromJSONTyped,
ExperimentListToJSON,
ExperimentListToJSONTyped,
} from './ExperimentList';
/**
*
* @export
* @interface PaginatedExperimentListList
*/
export interface PaginatedExperimentListList {
/**
*
* @type {number}
* @memberof PaginatedExperimentListList
*/
count: number;
/**
*
* @type {string}
* @memberof PaginatedExperimentListList
*/
next?: string | null;
/**
*
* @type {string}
* @memberof PaginatedExperimentListList
*/
previous?: string | null;
/**
*
* @type {Array<ExperimentList>}
* @memberof PaginatedExperimentListList
*/
results: Array<ExperimentList>;
}
/**
* Check if a given object implements the PaginatedExperimentListList interface.
*/
export function instanceOfPaginatedExperimentListList(value: object): value is PaginatedExperimentListList {
if (!('count' in value) || value['count'] === undefined) return false;
if (!('results' in value) || value['results'] === undefined) return false;
return true;
}
export function PaginatedExperimentListListFromJSON(json: any): PaginatedExperimentListList {
return PaginatedExperimentListListFromJSONTyped(json, false);
}
export function PaginatedExperimentListListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedExperimentListList {
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(ExperimentListFromJSON)),
};
}
export function PaginatedExperimentListListToJSON(json: any): PaginatedExperimentListList {
return PaginatedExperimentListListToJSONTyped(json, false);
}
export function PaginatedExperimentListListToJSONTyped(value?: PaginatedExperimentListList | 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(ExperimentListToJSON)),
};
}