"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.UpdatePricePlanInPlaceArgsToJSON = exports.UpdatePricePlanInPlaceArgsFromJSONTyped = exports.UpdatePricePlanInPlaceArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
const AddOnInputArgs_1 = require("./AddOnInputArgs");
const FeatureInputArgs_1 = require("./FeatureInputArgs");
const LimitInputArgs_1 = require("./LimitInputArgs");
const MeteredComponentInputArgs_1 = require("./MeteredComponentInputArgs");
function UpdatePricePlanInPlaceArgsFromJSON(json) {
    return UpdatePricePlanInPlaceArgsFromJSONTyped(json, false);
}
exports.UpdatePricePlanInPlaceArgsFromJSON = UpdatePricePlanInPlaceArgsFromJSON;
function UpdatePricePlanInPlaceArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'features': !(0, runtime_1.exists)(json, 'features') ? undefined : (json['features'].map(FeatureInputArgs_1.FeatureInputArgsFromJSON)),
        'limits': !(0, runtime_1.exists)(json, 'limits') ? undefined : (json['limits'].map(LimitInputArgs_1.LimitInputArgsFromJSON)),
        'basePriceDescription': !(0, runtime_1.exists)(json, 'base_price_description') ? undefined : json['base_price_description'],
        'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
        'addOns': !(0, runtime_1.exists)(json, 'add_ons') ? undefined : (json['add_ons'].map(AddOnInputArgs_1.AddOnInputArgsFromJSON)),
        'meteredComponents': !(0, runtime_1.exists)(json, 'metered_components') ? undefined : (json['metered_components'].map(MeteredComponentInputArgs_1.MeteredComponentInputArgsFromJSON)),
        'displayName': !(0, runtime_1.exists)(json, 'display_name') ? undefined : json['display_name'],
    };
}
exports.UpdatePricePlanInPlaceArgsFromJSONTyped = UpdatePricePlanInPlaceArgsFromJSONTyped;
function UpdatePricePlanInPlaceArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'features': value.features === undefined ? undefined : (value.features.map(FeatureInputArgs_1.FeatureInputArgsToJSON)),
        'limits': value.limits === undefined ? undefined : (value.limits.map(LimitInputArgs_1.LimitInputArgsToJSON)),
        'base_price_description': value.basePriceDescription,
        'description': value.description,
        'add_ons': value.addOns === undefined ? undefined : (value.addOns.map(AddOnInputArgs_1.AddOnInputArgsToJSON)),
        'metered_components': value.meteredComponents === undefined ? undefined : (value.meteredComponents.map(MeteredComponentInputArgs_1.MeteredComponentInputArgsToJSON)),
        'display_name': value.displayName,
    };
}
exports.UpdatePricePlanInPlaceArgsToJSON = UpdatePricePlanInPlaceArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXBkYXRlUHJpY2VQbGFuSW5QbGFjZUFyZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvVXBkYXRlUHJpY2VQbGFuSW5QbGFjZUFyZ3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRzs7O0FBRUgsd0NBQStDO0FBQy9DLHFEQUswQjtBQUMxQix5REFLNEI7QUFDNUIscURBSzBCO0FBQzFCLDJFQUtxQztBQW9EckMsU0FBZ0Isa0NBQWtDLENBQUMsSUFBUztJQUN4RCxPQUFPLHVDQUF1QyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztBQUNoRSxDQUFDO0FBRkQsZ0ZBRUM7QUFFRCxTQUFnQix1Q0FBdUMsQ0FBQyxJQUFTLEVBQUUsbUJBQTRCO0lBQzNGLElBQ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