Skip to content

The platform for continuously improving AI agents.

2.8 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 { FinetuningJobEvent } from './FinetuningJobEvent';
import {
    FinetuningJobEventFromJSON,
    FinetuningJobEventFromJSONTyped,
    FinetuningJobEventToJSON,
    FinetuningJobEventToJSONTyped,
} from './FinetuningJobEvent';

/**
 *
 * @export
 * @interface PaginatedFinetuningJobEventList
 */
export interface PaginatedFinetuningJobEventList {
    /**
     *
     * @type {number}
     * @memberof PaginatedFinetuningJobEventList
     */
    count: number;
    /**
     *
     * @type {string}
     * @memberof PaginatedFinetuningJobEventList
     */
    next?: string | null;
    /**
     *
     * @type {string}
     * @memberof PaginatedFinetuningJobEventList
     */
    previous?: string | null;
    /**
     *
     * @type {Array<FinetuningJobEvent>}
     * @memberof PaginatedFinetuningJobEventList
     */
    results: Array<FinetuningJobEvent>;
}

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

export function PaginatedFinetuningJobEventListFromJSON(json: any): PaginatedFinetuningJobEventList {
    return PaginatedFinetuningJobEventListFromJSONTyped(json, false);
}

export function PaginatedFinetuningJobEventListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFinetuningJobEventList {
    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(FinetuningJobEventFromJSON)),
    };
}

export function PaginatedFinetuningJobEventListToJSON(json: any): PaginatedFinetuningJobEventList {
    return PaginatedFinetuningJobEventListToJSONTyped(json, false);
}

export function PaginatedFinetuningJobEventListToJSONTyped(value?: PaginatedFinetuningJobEventList | 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(FinetuningJobEventToJSON)),
    };
}