/* 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';
/**
*
* @export
* @interface InvokeAgent200Response
*/
export interface InvokeAgent200Response {
[key: string]: any | any;
/**
*
* @type {boolean}
* @memberof InvokeAgent200Response
*/
success: boolean;
/**
*
* @type {any}
* @memberof InvokeAgent200Response
*/
result?: any | null;
/**
*
* @type {string}
* @memberof InvokeAgent200Response
*/
error?: string;
}
/**
* Check if a given object implements the InvokeAgent200Response interface.
*/
export function instanceOfInvokeAgent200Response(value: object): value is InvokeAgent200Response {
if (!('success' in value) || value['success'] === undefined) return false;
return true;
}
export function InvokeAgent200ResponseFromJSON(json: any): InvokeAgent200Response {
return InvokeAgent200ResponseFromJSONTyped(json, false);
}
export function InvokeAgent200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvokeAgent200Response {
if (json == null) {
return json;
}
return {
...json,
'success': json['success'],
'result': json['result'] == null ? undefined : json['result'],
'error': json['error'] == null ? undefined : json['error'],
};
}
export function InvokeAgent200ResponseToJSON(json: any): InvokeAgent200Response {
return InvokeAgent200ResponseToJSONTyped(json, false);
}
export function InvokeAgent200ResponseToJSONTyped(value?: InvokeAgent200Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
...value,
'success': value['success'],
'result': value['result'],
'error': value['error'],
};
}