/* 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 type { CommandResponse } from './CommandResponse'; import { instanceOfCommandResponse, CommandResponseFromJSON, CommandResponseFromJSONTyped, CommandResponseToJSON, } from './CommandResponse'; import type { CommandStartedResponse } from './CommandStartedResponse'; import { instanceOfCommandStartedResponse, CommandStartedResponseFromJSON, CommandStartedResponseFromJSONTyped, CommandStartedResponseToJSON, } from './CommandStartedResponse'; /** * @type Command200Response * * @export */ export type Command200Response = CommandResponse | CommandStartedResponse; export function Command200ResponseFromJSON(json: any): Command200Response { return Command200ResponseFromJSONTyped(json, false); } export function Command200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Command200Response { if (json == null) { return json; } if (typeof json !== 'object') { return json; } if (instanceOfCommandResponse(json)) { return CommandResponseFromJSONTyped(json, true); } if (instanceOfCommandStartedResponse(json)) { return CommandStartedResponseFromJSONTyped(json, true); } return {} as any; } export function Command200ResponseToJSON(json: any): any { return Command200ResponseToJSONTyped(json, false); } export function Command200ResponseToJSONTyped(value?: Command200Response | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } if (typeof value !== 'object') { return value; } if (instanceOfCommandResponse(value)) { return CommandResponseToJSON(value as CommandResponse); } if (instanceOfCommandStartedResponse(value)) { return CommandStartedResponseToJSON(value as CommandStartedResponse); } return {}; }