"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.MeteredComponentInputArgsToJSON = exports.MeteredComponentInputArgsFromJSONTyped = exports.MeteredComponentInputArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
const MeteredComponentLabelLimitInputArgs_1 = require("./MeteredComponentLabelLimitInputArgs");
const PriceSchemeInputArgs_1 = require("./PriceSchemeInputArgs");
function MeteredComponentInputArgsFromJSON(json) {
    return MeteredComponentInputArgsFromJSONTyped(json, false);
}
exports.MeteredComponentInputArgsFromJSON = MeteredComponentInputArgsFromJSON;
function MeteredComponentInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'meterId': !(0, runtime_1.exists)(json, 'meter_id') ? undefined : json['meter_id'],
        'displayName': !(0, runtime_1.exists)(json, 'display_name') ? undefined : json['display_name'],
        'minimumChargeFrequency': !(0, runtime_1.exists)(json, 'minimum_charge_frequency') ? undefined : json['minimum_charge_frequency'],
        'labelLimits': !(0, runtime_1.exists)(json, 'label_limits') ? undefined : (json['label_limits'].map(MeteredComponentLabelLimitInputArgs_1.MeteredComponentLabelLimitInputArgsFromJSON)),
        'minimumCharge': !(0, runtime_1.exists)(json, 'minimum_charge') ? undefined : json['minimum_charge'],
        'meterName': !(0, runtime_1.exists)(json, 'meter_name') ? undefined : json['meter_name'],
        'watermark': !(0, runtime_1.exists)(json, 'watermark') ? undefined : json['watermark'],
        'priceScheme': !(0, runtime_1.exists)(json, 'price_scheme') ? undefined : (0, PriceSchemeInputArgs_1.PriceSchemeInputArgsFromJSON)(json['price_scheme']),
        'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
        'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
    };
}
exports.MeteredComponentInputArgsFromJSONTyped = MeteredComponentInputArgsFromJSONTyped;
function MeteredComponentInputArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'meter_id': value.meterId,
        'display_name': value.displayName,
        'minimum_charge_frequency': value.minimumChargeFrequency,
        'label_limits': value.labelLimits === undefined ? undefined : (value.labelLimits.map(MeteredComponentLabelLimitInputArgs_1.MeteredComponentLabelLimitInputArgsToJSON)),
        'minimum_charge': value.minimumCharge,
        'meter_name': value.meterName,
        'watermark': value.watermark,
        'price_scheme': (0, PriceSchemeInputArgs_1.PriceSchemeInputArgsToJSON)(value.priceScheme),
        'id': value.id,
        'limit': value.limit,
    };
}
exports.MeteredComponentInputArgsToJSON = MeteredComponentInputArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWV0ZXJlZENvbXBvbmVudElucHV0QXJncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9NZXRlcmVkQ29tcG9uZW50SW5wdXRBcmdzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs7O0dBVUc7OztBQUVILHdDQUErQztBQUMvQywrRkFLK0M7QUFDL0MsaUVBS2dDO0FBc0VoQyxTQUFnQixpQ0FBaUMsQ0FBQyxJQUFTO0lBQ3ZELE9BQU8sc0NBQXNDLENBQUMsSUFBSSxFQUFFLEtBQUssQ0FBQyxDQUFDO0FBQy9ELENBQUM7QUFGRCw4RUFFQztBQUVELFNBQWdCLHNDQUFzQyxDQUFDLElBQVMsRUFBRSxtQkFBNEI7SUFDMUYsSUFBSSxDQUFDLElBQUksS0FBSyxTQUFTLENBQUMsSUFBS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