/* tslint:disable */
/* eslint-disable */
/**
* Squad API
* API for managing Squad resources
*
* The version of the OpenAPI document: 2.4.1
*
*
* 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 OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200Response
*/
export interface OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200Response {
/**
* Insight data
* @type {InsightWithRelationships}
* @memberof OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200Response
*/
data: InsightWithRelationships;
}
/**
* Check if a given object implements the OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200Response interface.
*/
export function instanceOfOrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200Response(value: object): value is OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200Response {
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200ResponseFromJSON(json: any): OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200Response {
return OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200ResponseFromJSONTyped(json, false);
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200Response {
if (json == null) {
return json;
}
return {
'data': InsightWithRelationshipsFromJSON(json['data']),
};
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200ResponseToJSON(json: any): OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200Response {
return OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200ResponseToJSONTyped(json, false);
}
export function OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200ResponseToJSONTyped(value?: OrganisationsOrgIdWorkspacesWorkspaceIdInsightsPost200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'data': InsightWithRelationshipsToJSON(value['data']),
};
}