"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Octane API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerPortalMeterLabelFilterToJSON = exports.CustomerPortalMeterLabelFilterFromJSONTyped = exports.CustomerPortalMeterLabelFilterFromJSON = exports.CustomerPortalMeterLabelFilterAggregateEnum = void 0;
const runtime_1 = require("../runtime");
const CustomerPortalLabelFilter_1 = require("./CustomerPortalLabelFilter");
/**
* @export
* @enum {string}
*/
var CustomerPortalMeterLabelFilterAggregateEnum;
(function (CustomerPortalMeterLabelFilterAggregateEnum) {
    CustomerPortalMeterLabelFilterAggregateEnum["Sum"] = "sum";
    CustomerPortalMeterLabelFilterAggregateEnum["TimeWeighted"] = "time_weighted";
    CustomerPortalMeterLabelFilterAggregateEnum["Latest"] = "latest";
    CustomerPortalMeterLabelFilterAggregateEnum["Max"] = "max";
})(CustomerPortalMeterLabelFilterAggregateEnum = exports.CustomerPortalMeterLabelFilterAggregateEnum || (exports.CustomerPortalMeterLabelFilterAggregateEnum = {}));
function CustomerPortalMeterLabelFilterFromJSON(json) {
    return CustomerPortalMeterLabelFilterFromJSONTyped(json, false);
}
exports.CustomerPortalMeterLabelFilterFromJSON = CustomerPortalMeterLabelFilterFromJSON;
function CustomerPortalMeterLabelFilterFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'labelFilters': !(0, runtime_1.exists)(json, 'label_filters') ? undefined : (json['label_filters'].map(CustomerPortalLabelFilter_1.CustomerPortalLabelFilterFromJSON)),
        'labelGroupBy': !(0, runtime_1.exists)(json, 'label_group_by') ? undefined : json['label_group_by'],
        'labelGroupByKeys': !(0, runtime_1.exists)(json, 'label_group_by_keys') ? undefined : json['label_group_by_keys'],
        'meterName': json['meter_name'],
        'aggregate': !(0, runtime_1.exists)(json, 'aggregate') ? undefined : json['aggregate'],
        'customerName': !(0, runtime_1.exists)(json, 'customer_name') ? undefined : json['customer_name'],
    };
}
exports.CustomerPortalMeterLabelFilterFromJSONTyped = CustomerPortalMeterLabelFilterFromJSONTyped;
function CustomerPortalMeterLabelFilterToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'label_filters': value.labelFilters === undefined ? undefined : (value.labelFilters.map(CustomerPortalLabelFilter_1.CustomerPortalLabelFilterToJSON)),
        'label_group_by': value.labelGroupBy,
        'label_group_by_keys': value.labelGroupByKeys,
        'meter_name': value.meterName,
        'aggregate': value.aggregate,
        'customer_name': value.customerName,
    };
}
exports.CustomerPortalMeterLabelFilterToJSON = CustomerPortalMeterLabelFilterToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJQb3J0YWxNZXRlckxhYmVsRmlsdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvZGVnZW4vbW9kZWxzL0N1c3RvbWVyUG9ydGFsTWV0ZXJMYWJlbEZpbHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjtBQUNwQjs7Ozs7Ozs7OztHQVVHOzs7QUFFSCx3Q0FBK0M7QUFDL0MsMkVBS3FDO0FBOENyQzs7O0VBR0U7QUFDRixJQUFZLDJDQUtYO0FBTEQsV0FBWSwyQ0FBMkM7SUFDbkQsMERBQVcsQ0FBQTtJQUNYLDZFQUE4QixDQUFBO0lBQzlCLGdFQUFpQixDQUFBO0lBQ2pCLDBEQUFXLENBQUE7QUFDZixDQUFDLEVBTFcsMkNBQTJDLEdBQTNDLG1EQUEyQyxLQUEzQyxtREFBMkMsUUFLdEQ7QUFFRCx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