/* 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.
 */
import { FilterFromJSON, FilterToJSON, } from './Filter';
import { SetValueFromJSON, SetValueToJSON, } from './SetValue';
/**
 * Check if a given object implements the Update interface.
 */
export function instanceOfUpdate(value) {
    return true;
}
export function UpdateFromJSON(json) {
    return UpdateFromJSONTyped(json, false);
}
export function UpdateFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'set': json['set'] == null ? undefined : (json['set'].map(SetValueFromJSON)),
        'filters': json['filters'] == null ? undefined : (json['filters'].map(FilterFromJSON)),
        'limit': json['limit'] == null ? undefined : json['limit'],
    };
}
export function UpdateToJSON(json) {
    return UpdateToJSONTyped(json, false);
}
export function UpdateToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'set': value['set'] == null ? undefined : (value['set'].map(SetValueToJSON)),
        'filters': value['filters'] == null ? undefined : (value['filters'].map(FilterToJSON)),
        'limit': value['limit'],
    };
}
//# sourceMappingURL=Update.js.map