/* 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.
 */


/**
 * 
 * @export
 */
export const ErrorCodes = {
    SERVER_ERROR: 'SERVER_ERROR',
    NOT_FOUND: 'NOT_FOUND',
    SOURCE_ALREADY_EXISTS: 'SOURCE_ALREADY_EXISTS',
    INVALID_ARGUMENT: 'INVALID_ARGUMENT',
    unknown_default_open_api: '11184809'
} as const;
export type ErrorCodes = typeof ErrorCodes[keyof typeof ErrorCodes];


export function instanceOfErrorCodes(value: any): boolean {
    for (const key in ErrorCodes) {
        if (Object.prototype.hasOwnProperty.call(ErrorCodes, key)) {
            if (ErrorCodes[key as keyof typeof ErrorCodes] === value) {
                return true;
            }
        }
    }
    return false;
}

export function ErrorCodesFromJSON(json: any): ErrorCodes {
    return ErrorCodesFromJSONTyped(json, false);
}

export function ErrorCodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorCodes {
    return json as ErrorCodes;
}

export function ErrorCodesToJSON(value?: ErrorCodes | null): any {
    return value as any;
}

export function ErrorCodesToJSONTyped(value: any, ignoreDiscriminator: boolean): ErrorCodes {
    return value as ErrorCodes;
}

