/* tslint:disable */ /* eslint-disable */ /** * Boat Public API v1 * Public JSON API for creating, operating, prompting, observing, and exposing Boat sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1. * * The version of the OpenAPI document: 1.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 { Box } from './Box'; import { BoxFromJSON, BoxFromJSONTyped, BoxToJSON, BoxToJSONTyped, } from './Box'; /** * * @export * @interface BoxInfoResponse */ export interface BoxInfoResponse { /** * * @type {boolean} * @memberof BoxInfoResponse */ ok: boolean; /** * * @type {string} * @memberof BoxInfoResponse */ type: string; /** * * @type {Box} * @memberof BoxInfoResponse */ box: Box; } /** * Check if a given object implements the BoxInfoResponse interface. */ export function instanceOfBoxInfoResponse(value: object): value is BoxInfoResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('box' in value) || value['box'] === undefined) return false; return true; } export function BoxInfoResponseFromJSON(json: any): BoxInfoResponse { return BoxInfoResponseFromJSONTyped(json, false); } export function BoxInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxInfoResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'box': BoxFromJSON(json['box']), }; } export function BoxInfoResponseToJSON(json: any): BoxInfoResponse { return BoxInfoResponseToJSONTyped(json, false); } export function BoxInfoResponseToJSONTyped(value?: BoxInfoResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'box': BoxToJSON(value['box']), }; }