/* 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 WebhookDeleteResponse */ export interface WebhookDeleteResponse { /** * * @type {boolean} * @memberof WebhookDeleteResponse */ ok: boolean; /** * Stable success envelope discriminator added by v1. * @type {string} * @memberof WebhookDeleteResponse */ type: string; /** * * @type {string} * @memberof WebhookDeleteResponse */ id: string; } /** * Check if a given object implements the WebhookDeleteResponse interface. */ export function instanceOfWebhookDeleteResponse(value: object): value is WebhookDeleteResponse { 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; return true; } export function WebhookDeleteResponseFromJSON(json: any): WebhookDeleteResponse { return WebhookDeleteResponseFromJSONTyped(json, false); } export function WebhookDeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookDeleteResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'id': json['id'], }; } export function WebhookDeleteResponseToJSON(json: any): WebhookDeleteResponse { return WebhookDeleteResponseToJSONTyped(json, false); } export function WebhookDeleteResponseToJSONTyped(value?: WebhookDeleteResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'id': value['id'], }; }