/* 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.
 */
/**
 * Check if a given object implements the FieldCollapse interface.
 */
export function instanceOfFieldCollapse(value) {
    return true;
}
export function FieldCollapseFromJSON(json) {
    return FieldCollapseFromJSONTyped(json, false);
}
export function FieldCollapseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'field': json['field'] == null ? undefined : json['field'],
        'max_concurrent_group_searches': json['max_concurrent_group_searches'] == null ? undefined : json['max_concurrent_group_searches'],
    };
}
export function FieldCollapseToJSON(json) {
    return FieldCollapseToJSONTyped(json, false);
}
export function FieldCollapseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'field': value['field'],
        'max_concurrent_group_searches': value['max_concurrent_group_searches'],
    };
}
//# sourceMappingURL=FieldCollapse.js.map