/* tslint:disable */ /* eslint-disable */ /** * ChatGPT Function * Backend for Azure OpenAI integrations * * The version of the OpenAPI document: v1.0.0 * * * 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'; /** * * @export * @interface ErrorResponse */ export interface ErrorResponse { /** * * @type {string} * @memberof ErrorResponse */ error?: string; /** * * @type {string} * @memberof ErrorResponse */ message?: string; /** * * @type {string} * @memberof ErrorResponse */ details?: string; } /** * Check if a given object implements the ErrorResponse interface. */ export function instanceOfErrorResponse(value: object): value is ErrorResponse { return true; } export function ErrorResponseFromJSON(json: any): ErrorResponse { return ErrorResponseFromJSONTyped(json, false); } export function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse { if (json == null) { return json; } return { 'error': json['error'] == null ? undefined : json['error'], 'message': json['message'] == null ? undefined : json['message'], 'details': json['details'] == null ? undefined : json['details'], }; } export function ErrorResponseToJSON(json: any): ErrorResponse { return ErrorResponseToJSONTyped(json, false); } export function ErrorResponseToJSONTyped(value?: ErrorResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'error': value['error'], 'message': value['message'], 'details': value['details'], }; }