/* 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 BoxActionResponse */ export interface BoxActionResponse { /** * * @type {boolean} * @memberof BoxActionResponse */ ok: boolean; /** * * @type {string} * @memberof BoxActionResponse */ type: string; /** * * @type {string} * @memberof BoxActionResponse */ id: string; /** * * @type {string} * @memberof BoxActionResponse */ status: string; /** * * @type {Box} * @memberof BoxActionResponse */ box?: Box | null; } /** * Check if a given object implements the BoxActionResponse interface. */ export function instanceOfBoxActionResponse(value: object): value is BoxActionResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; return true; } export function BoxActionResponseFromJSON(json: any): BoxActionResponse { return BoxActionResponseFromJSONTyped(json, false); } export function BoxActionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxActionResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'id': json['id'], 'status': json['status'], 'box': json['box'] == null ? undefined : BoxFromJSON(json['box']), }; } export function BoxActionResponseToJSON(json: any): BoxActionResponse { return BoxActionResponseToJSONTyped(json, false); } export function BoxActionResponseToJSONTyped(value?: BoxActionResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'id': value['id'], 'status': value['status'], 'box': BoxToJSON(value['box']), }; }