Skip to content

The platform for continuously improving AI agents.

1.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';
/**
 *
 * @export
 * @interface DedicatedUsagePoint
 */
export interface DedicatedUsagePoint {
    /**
     *
     * @type {Date}
     * @memberof DedicatedUsagePoint
     */
    bucket: Date;
    /**
     *
     * @type {number}
     * @memberof DedicatedUsagePoint
     */
    credits: number;
}

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

export function DedicatedUsagePointFromJSON(json: any): DedicatedUsagePoint {
    return DedicatedUsagePointFromJSONTyped(json, false);
}

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

        'bucket': (new Date(json['bucket'])),
        'credits': json['credits'],
    };
}

export function DedicatedUsagePointToJSON(json: any): DedicatedUsagePoint {
    return DedicatedUsagePointToJSONTyped(json, false);
}

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

    return {

        'bucket': value['bucket'].toISOString(),
        'credits': value['credits'],
    };
}