ProcessDataIngress201Response.ts•2.12 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 { InsightResponse } from './InsightResponse.js';
import {
InsightResponseFromJSON,
InsightResponseFromJSONTyped,
InsightResponseToJSON,
InsightResponseToJSONTyped,
} from './InsightResponse.js';
/**
*
* @export
* @interface ProcessDataIngress201Response
*/
export interface ProcessDataIngress201Response {
[key: string]: any | any;
/**
*
* @type {InsightResponse}
* @memberof ProcessDataIngress201Response
*/
data: InsightResponse;
}
/**
* Check if a given object implements the ProcessDataIngress201Response interface.
*/
export function instanceOfProcessDataIngress201Response(value: object): value is ProcessDataIngress201Response {
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function ProcessDataIngress201ResponseFromJSON(json: any): ProcessDataIngress201Response {
return ProcessDataIngress201ResponseFromJSONTyped(json, false);
}
export function ProcessDataIngress201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessDataIngress201Response {
if (json == null) {
return json;
}
return {
...json,
'data': InsightResponseFromJSON(json['data']),
};
}
export function ProcessDataIngress201ResponseToJSON(json: any): ProcessDataIngress201Response {
return ProcessDataIngress201ResponseToJSONTyped(json, false);
}
export function ProcessDataIngress201ResponseToJSONTyped(value?: ProcessDataIngress201Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
...value,
'data': InsightResponseToJSON(value['data']),
};
}