/* 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.
 */
import { ErrorCodesFromJSON, ErrorCodesToJSON, } from './ErrorCodes';
/**
 * Check if a given object implements the ErrorSchema interface.
 */
export function instanceOfErrorSchema(value) {
    if (!('code' in value) || value['code'] === undefined)
        return false;
    return true;
}
export function ErrorSchemaFromJSON(json) {
    return ErrorSchemaFromJSONTyped(json, false);
}
export function ErrorSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'code': ErrorCodesFromJSON(json['code']),
        'message': json['message'] == null ? undefined : json['message'],
    };
}
export function ErrorSchemaToJSON(json) {
    return ErrorSchemaToJSONTyped(json, false);
}
export function ErrorSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'code': ErrorCodesToJSON(value['code']),
        'message': value['message'],
    };
}
