CreateInsight200Response.ts•2.19 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 { InsightWithRelationships } from './InsightWithRelationships.js';
import {
InsightWithRelationshipsFromJSON,
InsightWithRelationshipsFromJSONTyped,
InsightWithRelationshipsToJSON,
InsightWithRelationshipsToJSONTyped,
} from './InsightWithRelationships.js';
/**
* Response containing a single insight item
* @export
* @interface CreateInsight200Response
*/
export interface CreateInsight200Response {
[key: string]: any | any;
/**
* Insight data
* @type {InsightWithRelationships}
* @memberof CreateInsight200Response
*/
data: InsightWithRelationships;
}
/**
* Check if a given object implements the CreateInsight200Response interface.
*/
export function instanceOfCreateInsight200Response(value: object): value is CreateInsight200Response {
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function CreateInsight200ResponseFromJSON(json: any): CreateInsight200Response {
return CreateInsight200ResponseFromJSONTyped(json, false);
}
export function CreateInsight200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInsight200Response {
if (json == null) {
return json;
}
return {
...json,
'data': InsightWithRelationshipsFromJSON(json['data']),
};
}
export function CreateInsight200ResponseToJSON(json: any): CreateInsight200Response {
return CreateInsight200ResponseToJSONTyped(json, false);
}
export function CreateInsight200ResponseToJSONTyped(value?: CreateInsight200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
...value,
'data': InsightWithRelationshipsToJSON(value['data']),
};
}