/* tslint:disable */
/* eslint-disable */
/**
* Squad API
* API for managing Squad resources
*
* The version of the OpenAPI document: 4.8.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 { DeleteGoal200ResponseData } from './DeleteGoal200ResponseData.js';
import {
DeleteGoal200ResponseDataFromJSON,
DeleteGoal200ResponseDataFromJSONTyped,
DeleteGoal200ResponseDataToJSON,
DeleteGoal200ResponseDataToJSONTyped,
} from './DeleteGoal200ResponseData.js';
/**
* Response containing a success message
* @export
* @interface DeleteGoal200Response
*/
export interface DeleteGoal200Response {
[key: string]: any | any;
/**
*
* @type {DeleteGoal200ResponseData}
* @memberof DeleteGoal200Response
*/
data: DeleteGoal200ResponseData;
}
/**
* Check if a given object implements the DeleteGoal200Response interface.
*/
export function instanceOfDeleteGoal200Response(value: object): value is DeleteGoal200Response {
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function DeleteGoal200ResponseFromJSON(json: any): DeleteGoal200Response {
return DeleteGoal200ResponseFromJSONTyped(json, false);
}
export function DeleteGoal200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteGoal200Response {
if (json == null) {
return json;
}
return {
...json,
'data': DeleteGoal200ResponseDataFromJSON(json['data']),
};
}
export function DeleteGoal200ResponseToJSON(json: any): DeleteGoal200Response {
return DeleteGoal200ResponseToJSONTyped(json, false);
}
export function DeleteGoal200ResponseToJSONTyped(value?: DeleteGoal200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
...value,
'data': DeleteGoal200ResponseDataToJSON(value['data']),
};
}