/* 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'; /** * * @export * @interface ErrorEnvelopeError */ export interface ErrorEnvelopeError { /** * * @type {string} * @memberof ErrorEnvelopeError */ code: string; /** * * @type {string} * @memberof ErrorEnvelopeError */ message: string; /** * * @type {number} * @memberof ErrorEnvelopeError */ status: number; /** * * @type {{ [key: string]: any; }} * @memberof ErrorEnvelopeError */ details?: { [key: string]: any; }; } /** * Check if a given object implements the ErrorEnvelopeError interface. */ export function instanceOfErrorEnvelopeError(value: object): value is ErrorEnvelopeError { if (!('code' in value) || value['code'] === undefined) return false; if (!('message' in value) || value['message'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; return true; } export function ErrorEnvelopeErrorFromJSON(json: any): ErrorEnvelopeError { return ErrorEnvelopeErrorFromJSONTyped(json, false); } export function ErrorEnvelopeErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorEnvelopeError { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'], 'status': json['status'], 'details': json['details'] == null ? undefined : json['details'], }; } export function ErrorEnvelopeErrorToJSON(json: any): ErrorEnvelopeError { return ErrorEnvelopeErrorToJSONTyped(json, false); } export function ErrorEnvelopeErrorToJSONTyped(value?: ErrorEnvelopeError | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'status': value['status'], 'details': value['details'], }; }