/* 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 { BoxEnvironment } from './BoxEnvironment'; import { BoxEnvironmentFromJSON, BoxEnvironmentFromJSONTyped, BoxEnvironmentToJSON, BoxEnvironmentToJSONTyped, } from './BoxEnvironment'; /** * * @export * @interface BoxEnvironmentResponse */ export interface BoxEnvironmentResponse { /** * * @type {boolean} * @memberof BoxEnvironmentResponse */ success: boolean; /** * * @type {BoxEnvironment} * @memberof BoxEnvironmentResponse */ environment?: BoxEnvironment | null; } /** * Check if a given object implements the BoxEnvironmentResponse interface. */ export function instanceOfBoxEnvironmentResponse(value: object): value is BoxEnvironmentResponse { if (!('success' in value) || value['success'] === undefined) return false; return true; } export function BoxEnvironmentResponseFromJSON(json: any): BoxEnvironmentResponse { return BoxEnvironmentResponseFromJSONTyped(json, false); } export function BoxEnvironmentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxEnvironmentResponse { if (json == null) { return json; } return { 'success': json['success'], 'environment': json['environment'] == null ? undefined : BoxEnvironmentFromJSON(json['environment']), }; } export function BoxEnvironmentResponseToJSON(json: any): BoxEnvironmentResponse { return BoxEnvironmentResponseToJSONTyped(json, false); } export function BoxEnvironmentResponseToJSONTyped(value?: BoxEnvironmentResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'success': value['success'], 'environment': BoxEnvironmentToJSON(value['environment']), }; }