"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * UCX Proxy
 * A single use API for the UCX Proxy.
 *
 * The version of the OpenAPI document: 0.0.12
 * Contact: customersuccess@equisoft.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfErrorSchema = instanceOfErrorSchema;
exports.ErrorSchemaFromJSON = ErrorSchemaFromJSON;
exports.ErrorSchemaFromJSONTyped = ErrorSchemaFromJSONTyped;
exports.ErrorSchemaToJSON = ErrorSchemaToJSON;
exports.ErrorSchemaToJSONTyped = ErrorSchemaToJSONTyped;
const ErrorCodes_1 = require("./ErrorCodes");
/**
 * Check if a given object implements the ErrorSchema interface.
 */
function instanceOfErrorSchema(value) {
    if (!('code' in value) || value['code'] === undefined)
        return false;
    return true;
}
function ErrorSchemaFromJSON(json) {
    return ErrorSchemaFromJSONTyped(json, false);
}
function ErrorSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'code': (0, ErrorCodes_1.ErrorCodesFromJSON)(json['code']),
        'message': json['message'] == null ? undefined : json['message'],
    };
}
function ErrorSchemaToJSON(json) {
    return ErrorSchemaToJSONTyped(json, false);
}
function ErrorSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'code': (0, ErrorCodes_1.ErrorCodesToJSON)(value['code']),
        'message': value['message'],
    };
}
