/* 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 AggregationRange interface.
 */
export function instanceOfAggregationRange(value) {
    return true;
}
export function AggregationRangeFromJSON(json) {
    return AggregationRangeFromJSONTyped(json, false);
}
export function AggregationRangeFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'from': json['from'] == null ? undefined : json['from'],
        'to': json['to'] == null ? undefined : json['to'],
        'key': json['key'] == null ? undefined : json['key'],
    };
}
export function AggregationRangeToJSON(json) {
    return AggregationRangeToJSONTyped(json, false);
}
export function AggregationRangeToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'from': value['from'],
        'to': value['to'],
        'key': value['key'],
    };
}
//# sourceMappingURL=AggregationRange.js.map