CreateIntegration200Response.ts•2.1 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 { Integration } from './Integration.js';
import {
IntegrationFromJSON,
IntegrationFromJSONTyped,
IntegrationToJSON,
IntegrationToJSONTyped,
} from './Integration.js';
/**
* Response containing a single integration
* @export
* @interface CreateIntegration200Response
*/
export interface CreateIntegration200Response {
[key: string]: any | any;
/**
*
* @type {Integration}
* @memberof CreateIntegration200Response
*/
data: Integration;
}
/**
* Check if a given object implements the CreateIntegration200Response interface.
*/
export function instanceOfCreateIntegration200Response(value: object): value is CreateIntegration200Response {
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function CreateIntegration200ResponseFromJSON(json: any): CreateIntegration200Response {
return CreateIntegration200ResponseFromJSONTyped(json, false);
}
export function CreateIntegration200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateIntegration200Response {
if (json == null) {
return json;
}
return {
...json,
'data': IntegrationFromJSON(json['data']),
};
}
export function CreateIntegration200ResponseToJSON(json: any): CreateIntegration200Response {
return CreateIntegration200ResponseToJSONTyped(json, false);
}
export function CreateIntegration200ResponseToJSONTyped(value?: CreateIntegration200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
...value,
'data': IntegrationToJSON(value['data']),
};
}