/* 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 { PageInfo } from './PageInfo'; import { PageInfoFromJSON, PageInfoFromJSONTyped, PageInfoToJSON, PageInfoToJSONTyped, } from './PageInfo'; import type { Box } from './Box'; import { BoxFromJSON, BoxFromJSONTyped, BoxToJSON, BoxToJSONTyped, } from './Box'; /** * * @export * @interface BoxListResponse */ export interface BoxListResponse { /** * * @type {boolean} * @memberof BoxListResponse */ ok: boolean; /** * * @type {BoxListResponseTypeEnum} * @memberof BoxListResponse */ type: BoxListResponseTypeEnum; /** * * @type {Array} * @memberof BoxListResponse */ boxes: Array; /** * * @type {PageInfo} * @memberof BoxListResponse */ pageInfo?: PageInfo; } /** * @export */ export const BoxListResponseTypeEnum = { BoxList: 'box.list' } as const; export type BoxListResponseTypeEnum = typeof BoxListResponseTypeEnum[keyof typeof BoxListResponseTypeEnum]; /** * Check if a given object implements the BoxListResponse interface. */ export function instanceOfBoxListResponse(value: object): value is BoxListResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('boxes' in value) || value['boxes'] === undefined) return false; return true; } export function BoxListResponseFromJSON(json: any): BoxListResponse { return BoxListResponseFromJSONTyped(json, false); } export function BoxListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxListResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'boxes': ((json['boxes'] as Array).map(BoxFromJSON)), 'pageInfo': json['pageInfo'] == null ? undefined : PageInfoFromJSON(json['pageInfo']), }; } export function BoxListResponseToJSON(json: any): BoxListResponse { return BoxListResponseToJSONTyped(json, false); } export function BoxListResponseToJSONTyped(value?: BoxListResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'boxes': ((value['boxes'] as Array).map(BoxToJSON)), 'pageInfo': PageInfoToJSON(value['pageInfo']), }; }