/* 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 FacetSortSortTypeEnum = {
    ALPHA: 'ALPHA',
    COUNT: 'COUNT',
    MAX: 'MAX',
    SUM: 'SUM'
};
/**
 * Check if a given object implements the FacetSort interface.
 */
export function instanceOfFacetSort(value) {
    return true;
}
export function FacetSortFromJSON(json) {
    return FacetSortFromJSONTyped(json, false);
}
export function FacetSortFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'facetName': json['facetName'] == null ? undefined : json['facetName'],
        'sortType': json['sortType'] == null ? undefined : json['sortType'],
        'sumFields': json['sumFields'] == null ? undefined : json['sumFields'],
        'maxfield': json['maxfield'] == null ? undefined : json['maxfield'],
    };
}
export function FacetSortToJSON(json) {
    return FacetSortToJSONTyped(json, false);
}
export function FacetSortToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'facetName': value['facetName'],
        'sortType': value['sortType'],
        'sumFields': value['sumFields'],
        'maxfield': value['maxfield'],
    };
}
//# sourceMappingURL=FacetSort.js.map