Skip to content

The platform for continuously improving AI agents.

2.7 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 { NativeEvaluation } from './NativeEvaluation';
import {
    NativeEvaluationFromJSON,
    NativeEvaluationFromJSONTyped,
    NativeEvaluationToJSON,
    NativeEvaluationToJSONTyped,
} from './NativeEvaluation';

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

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

export function PaginatedNativeEvaluationListFromJSON(json: any): PaginatedNativeEvaluationList {
    return PaginatedNativeEvaluationListFromJSONTyped(json, false);
}

export function PaginatedNativeEvaluationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedNativeEvaluationList {
    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(NativeEvaluationFromJSON)),
    };
}

export function PaginatedNativeEvaluationListToJSON(json: any): PaginatedNativeEvaluationList {
    return PaginatedNativeEvaluationListToJSONTyped(json, false);
}

export function PaginatedNativeEvaluationListToJSONTyped(value?: PaginatedNativeEvaluationList | 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(NativeEvaluationToJSON)),
    };
}