"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.AddMeteredComponentsToPricePlanInputToJSON = exports.AddMeteredComponentsToPricePlanInputFromJSONTyped = exports.AddMeteredComponentsToPricePlanInputFromJSON = void 0;
const MeteredComponentInputArgs_1 = require("./MeteredComponentInputArgs");
function AddMeteredComponentsToPricePlanInputFromJSON(json) {
    return AddMeteredComponentsToPricePlanInputFromJSONTyped(json, false);
}
exports.AddMeteredComponentsToPricePlanInputFromJSON = AddMeteredComponentsToPricePlanInputFromJSON;
function AddMeteredComponentsToPricePlanInputFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'meteredComponents': (json['metered_components'].map(MeteredComponentInputArgs_1.MeteredComponentInputArgsFromJSON)),
    };
}
exports.AddMeteredComponentsToPricePlanInputFromJSONTyped = AddMeteredComponentsToPricePlanInputFromJSONTyped;
function AddMeteredComponentsToPricePlanInputToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'metered_components': (value.meteredComponents.map(MeteredComponentInputArgs_1.MeteredComponentInputArgsToJSON)),
    };
}
exports.AddMeteredComponentsToPricePlanInputToJSON = AddMeteredComponentsToPricePlanInputToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWRkTWV0ZXJlZENvbXBvbmVudHNUb1ByaWNlUGxhbklucHV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvZGVnZW4vbW9kZWxzL0FkZE1ldGVyZWRDb21wb25lbnRzVG9QcmljZVBsYW5JbnB1dC50cyJ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