"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.CustomerPortalSubscriptionToJSON = exports.CustomerPortalSubscriptionFromJSONTyped = exports.CustomerPortalSubscriptionFromJSON = void 0;
const runtime_1 = require("../runtime");
const PricePlan_1 = require("./PricePlan");
function CustomerPortalSubscriptionFromJSON(json) {
    return CustomerPortalSubscriptionFromJSONTyped(json, false);
}
exports.CustomerPortalSubscriptionFromJSON = CustomerPortalSubscriptionFromJSON;
function CustomerPortalSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'pricePlan': !(0, runtime_1.exists)(json, 'price_plan') ? undefined : (0, PricePlan_1.PricePlanFromJSON)(json['price_plan']),
    };
}
exports.CustomerPortalSubscriptionFromJSONTyped = CustomerPortalSubscriptionFromJSONTyped;
function CustomerPortalSubscriptionToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'price_plan': (0, PricePlan_1.PricePlanToJSON)(value.pricePlan),
    };
}
exports.CustomerPortalSubscriptionToJSON = CustomerPortalSubscriptionToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJQb3J0YWxTdWJzY3JpcHRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvQ3VzdG9tZXJQb3J0YWxTdWJzY3JpcHRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7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