Skip to content

The platform for continuously improving AI agents.

1.9 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';
/**
 *
 * @export
 * @interface Stratum
 */
export interface Stratum {
    /**
     *
     * @type {Array<any>}
     * @memberof Stratum
     */
    values: Array<any>;
    /**
     *
     * @type {number}
     * @memberof Stratum
     */
    count: number;
    /**
     *
     * @type {number}
     * @memberof Stratum
     */
    allocation: number | null;
}

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

export function StratumFromJSON(json: any): Stratum {
    return StratumFromJSONTyped(json, false);
}

export function StratumFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stratum {
    if (json == null) {
        return json;
    }
    return {

        'values': json['values'],
        'count': json['count'],
        'allocation': json['allocation'],
    };
}

export function StratumToJSON(json: any): Stratum {
    return StratumToJSONTyped(json, false);
}

export function StratumToJSONTyped(value?: Stratum | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

        'values': value['values'],
        'count': value['count'],
        'allocation': value['allocation'],
    };
}