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';
/**
*
* @export
* @interface DedicatedUsageBreakdown
*/
export interface DedicatedUsageBreakdown {
/**
*
* @type {string}
* @memberof DedicatedUsageBreakdown
*/
gpuType: string | null;
/**
*
* @type {number}
* @memberof DedicatedUsageBreakdown
*/
credits: number;
}
/**
* Check if a given object implements the DedicatedUsageBreakdown interface.
*/
export function instanceOfDedicatedUsageBreakdown(value: object): value is DedicatedUsageBreakdown {
if (!('gpuType' in value) || value['gpuType'] === undefined) return false;
if (!('credits' in value) || value['credits'] === undefined) return false;
return true;
}
export function DedicatedUsageBreakdownFromJSON(json: any): DedicatedUsageBreakdown {
return DedicatedUsageBreakdownFromJSONTyped(json, false);
}
export function DedicatedUsageBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedUsageBreakdown {
if (json == null) {
return json;
}
return {
'gpuType': json['gpu_type'],
'credits': json['credits'],
};
}
export function DedicatedUsageBreakdownToJSON(json: any): DedicatedUsageBreakdown {
return DedicatedUsageBreakdownToJSONTyped(json, false);
}
export function DedicatedUsageBreakdownToJSONTyped(value?: DedicatedUsageBreakdown | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'gpu_type': value['gpuType'],
'credits': value['credits'],
};
}