/* 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 QueryKeyRange interface.
 */
export function instanceOfQueryKeyRange(value) {
    if (!('key' in value) || value['key'] === undefined)
        return false;
    return true;
}
export function QueryKeyRangeFromJSON(json) {
    return QueryKeyRangeFromJSONTyped(json, false);
}
export function QueryKeyRangeFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'key': json['key'],
        'min': json['min'] == null ? undefined : json['min'],
        'max': json['max'] == null ? undefined : json['max'],
    };
}
export function QueryKeyRangeToJSON(json) {
    return QueryKeyRangeToJSONTyped(json, false);
}
export function QueryKeyRangeToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'key': value['key'],
        'min': value['min'],
        'max': value['max'],
    };
}
//# sourceMappingURL=QueryKeyRange.js.map