DeleteOutcome200Response.ts•2.22 kB
/* tslint:disable */
/* eslint-disable */
/**
* Squad API
* API for managing Squad resources
*
* The version of the OpenAPI document: 4.0.0
* Contact: help@meetsquad.ai
*
* 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.js';
import type { DeleteOutcome200ResponseData } from './DeleteOutcome200ResponseData.js';
import {
DeleteOutcome200ResponseDataFromJSON,
DeleteOutcome200ResponseDataFromJSONTyped,
DeleteOutcome200ResponseDataToJSON,
DeleteOutcome200ResponseDataToJSONTyped,
} from './DeleteOutcome200ResponseData.js';
/**
* Response containing a success message
* @export
* @interface DeleteOutcome200Response
*/
export interface DeleteOutcome200Response {
[key: string]: any | any;
/**
*
* @type {DeleteOutcome200ResponseData}
* @memberof DeleteOutcome200Response
*/
data: DeleteOutcome200ResponseData;
}
/**
* Check if a given object implements the DeleteOutcome200Response interface.
*/
export function instanceOfDeleteOutcome200Response(value: object): value is DeleteOutcome200Response {
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function DeleteOutcome200ResponseFromJSON(json: any): DeleteOutcome200Response {
return DeleteOutcome200ResponseFromJSONTyped(json, false);
}
export function DeleteOutcome200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteOutcome200Response {
if (json == null) {
return json;
}
return {
...json,
'data': DeleteOutcome200ResponseDataFromJSON(json['data']),
};
}
export function DeleteOutcome200ResponseToJSON(json: any): DeleteOutcome200Response {
return DeleteOutcome200ResponseToJSONTyped(json, false);
}
export function DeleteOutcome200ResponseToJSONTyped(value?: DeleteOutcome200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
...value,
'data': DeleteOutcome200ResponseDataToJSON(value['data']),
};
}