/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * 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 EntityUpdateResultFailureCodeEnum = {
    NOT_FOUND: 'NOT_FOUND',
    UNAUTHORIZED: 'UNAUTHORIZED',
    CONCURRENT_UPDATE: 'CONCURRENT_UPDATE',
    ILLEGAL_ARGUMENT: 'ILLEGAL_ARGUMENT',
    UNKNOWN: 'UNKNOWN'
};
/**
 * Check if a given object implements the EntityUpdateResult interface.
 */
export function instanceOfEntityUpdateResult(value) {
    return true;
}
export function EntityUpdateResultFromJSON(json) {
    return EntityUpdateResultFromJSONTyped(json, false);
}
export function EntityUpdateResultFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'entityId': json['entityId'] == null ? undefined : json['entityId'],
        'failureMessage': json['failureMessage'] == null ? undefined : json['failureMessage'],
        'failureCode': json['failureCode'] == null ? undefined : json['failureCode'],
    };
}
export function EntityUpdateResultToJSON(json) {
    return EntityUpdateResultToJSONTyped(json, false);
}
export function EntityUpdateResultToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'entityId': value['entityId'],
        'failureMessage': value['failureMessage'],
        'failureCode': value['failureCode'],
    };
}
//# sourceMappingURL=EntityUpdateResult.js.map