"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.CustomerPortalActiveSubscriptionInputArgsToJSON = exports.CustomerPortalActiveSubscriptionInputArgsFromJSONTyped = exports.CustomerPortalActiveSubscriptionInputArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
const SubscriptionAddOnInput_1 = require("./SubscriptionAddOnInput");
function CustomerPortalActiveSubscriptionInputArgsFromJSON(json) {
    return CustomerPortalActiveSubscriptionInputArgsFromJSONTyped(json, false);
}
exports.CustomerPortalActiveSubscriptionInputArgsFromJSON = CustomerPortalActiveSubscriptionInputArgsFromJSON;
function CustomerPortalActiveSubscriptionInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'addOns': !(0, runtime_1.exists)(json, 'add_ons') ? undefined : (json['add_ons'] === null ? null : json['add_ons'].map(SubscriptionAddOnInput_1.SubscriptionAddOnInputFromJSON)),
        'customerName': !(0, runtime_1.exists)(json, 'customer_name') ? undefined : json['customer_name'],
        'pricePlanUuid': !(0, runtime_1.exists)(json, 'price_plan_uuid') ? undefined : json['price_plan_uuid'],
    };
}
exports.CustomerPortalActiveSubscriptionInputArgsFromJSONTyped = CustomerPortalActiveSubscriptionInputArgsFromJSONTyped;
function CustomerPortalActiveSubscriptionInputArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'add_ons': value.addOns === undefined ? undefined : (value.addOns === null ? null : value.addOns.map(SubscriptionAddOnInput_1.SubscriptionAddOnInputToJSON)),
        'customer_name': value.customerName,
        'price_plan_uuid': value.pricePlanUuid,
    };
}
exports.CustomerPortalActiveSubscriptionInput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