/* 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 { OutcomeWithRelationships } from './OutcomeWithRelationships.js';
import {
OutcomeWithRelationshipsFromJSON,
OutcomeWithRelationshipsFromJSONTyped,
OutcomeWithRelationshipsToJSON,
OutcomeWithRelationshipsToJSONTyped,
} from './OutcomeWithRelationships.js';
/**
* Response containing a single outcome
* @export
* @interface CreateGoal200Response
*/
export interface CreateGoal200Response {
[key: string]: any | any;
/**
*
* @type {OutcomeWithRelationships}
* @memberof CreateGoal200Response
*/
data: OutcomeWithRelationships;
}
/**
* Check if a given object implements the CreateGoal200Response interface.
*/
export function instanceOfCreateGoal200Response(value: object): value is CreateGoal200Response {
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function CreateGoal200ResponseFromJSON(json: any): CreateGoal200Response {
return CreateGoal200ResponseFromJSONTyped(json, false);
}
export function CreateGoal200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateGoal200Response {
if (json == null) {
return json;
}
return {
...json,
'data': OutcomeWithRelationshipsFromJSON(json['data']),
};
}
export function CreateGoal200ResponseToJSON(json: any): CreateGoal200Response {
return CreateGoal200ResponseToJSONTyped(json, false);
}
export function CreateGoal200ResponseToJSONTyped(value?: CreateGoal200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
...value,
'data': OutcomeWithRelationshipsToJSON(value['data']),
};
}