/* 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 FacetTopN interface.
 */
export function instanceOfFacetTopN(value) {
    return true;
}
export function FacetTopNFromJSON(json) {
    return FacetTopNFromJSONTyped(json, false);
}
export function FacetTopNFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'key': json['key'] == null ? undefined : json['key'],
        'value': json['value'] == null ? undefined : json['value'],
    };
}
export function FacetTopNToJSON(json) {
    return FacetTopNToJSONTyped(json, false);
}
export function FacetTopNToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'key': value['key'],
        'value': value['value'],
    };
}
//# sourceMappingURL=FacetTopN.js.map