"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.AddFeaturesToPricePlanInputToJSON = exports.AddFeaturesToPricePlanInputFromJSONTyped = exports.AddFeaturesToPricePlanInputFromJSON = void 0;
const runtime_1 = require("../runtime");
const FeatureInputArgs_1 = require("./FeatureInputArgs");
const LimitInputArgs_1 = require("./LimitInputArgs");
function AddFeaturesToPricePlanInputFromJSON(json) {
    return AddFeaturesToPricePlanInputFromJSONTyped(json, false);
}
exports.AddFeaturesToPricePlanInputFromJSON = AddFeaturesToPricePlanInputFromJSON;
function AddFeaturesToPricePlanInputFromJSONTyped(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)),
    };
}
exports.AddFeaturesToPricePlanInputFromJSONTyped = AddFeaturesToPricePlanInputFromJSONTyped;
function AddFeaturesToPricePlanInputToJSON(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)),
    };
}
exports.AddFeaturesToPricePlanInputToJSON = AddFeaturesToPricePlanInputToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWRkRmVhdHVyZXNUb1ByaWNlUGxhbklucHV0LmpzIiwic291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