"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.UpdateMeteredComponentLimitsInputToJSON = exports.UpdateMeteredComponentLimitsInputFromJSONTyped = exports.UpdateMeteredComponentLimitsInputFromJSON = void 0;
const runtime_1 = require("../runtime");
const MeteredComponentLabelLimitInputArgs_1 = require("./MeteredComponentLabelLimitInputArgs");
function UpdateMeteredComponentLimitsInputFromJSON(json) {
    return UpdateMeteredComponentLimitsInputFromJSONTyped(json, false);
}
exports.UpdateMeteredComponentLimitsInputFromJSON = UpdateMeteredComponentLimitsInputFromJSON;
function UpdateMeteredComponentLimitsInputFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'labelLimits': !(0, runtime_1.exists)(json, 'label_limits') ? undefined : (json['label_limits'].map(MeteredComponentLabelLimitInputArgs_1.MeteredComponentLabelLimitInputArgsFromJSON)),
        'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
    };
}
exports.UpdateMeteredComponentLimitsInputFromJSONTyped = UpdateMeteredComponentLimitsInputFromJSONTyped;
function UpdateMeteredComponentLimitsInputToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'label_limits': value.labelLimits === undefined ? undefined : (value.labelLimits.map(MeteredComponentLabelLimitInputArgs_1.MeteredComponentLabelLimitInputArgsToJSON)),
        'limit': value.limit,
    };
}
exports.UpdateMeteredComponentLimitsInputToJSON = UpdateMeteredComponentLimitsInputToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXBkYXRlTWV0ZXJlZENvbXBvbmVudExpbWl0c0lucH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