"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.SubscriptionAddOnInputToJSON = exports.SubscriptionAddOnInputFromJSONTyped = exports.SubscriptionAddOnInputFromJSON = void 0;
const runtime_1 = require("../runtime");
function SubscriptionAddOnInputFromJSON(json) {
    return SubscriptionAddOnInputFromJSONTyped(json, false);
}
exports.SubscriptionAddOnInputFromJSON = SubscriptionAddOnInputFromJSON;
function SubscriptionAddOnInputFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'name': json['name'],
        'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
        'price': !(0, runtime_1.exists)(json, 'price') ? undefined : json['price'],
    };
}
exports.SubscriptionAddOnInputFromJSONTyped = SubscriptionAddOnInputFromJSONTyped;
function SubscriptionAddOnInputToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'name': value.name,
        'quantity': value.quantity,
        'price': value.price,
    };
}
exports.SubscriptionAddOnInputToJSON = SubscriptionAddOnInputToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3Vic2NyaXB0aW9uQWRkT25JbnB1dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9TdWJzY3JpcHRpb25BZGRPbklucHV0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs7O0dBVUc7OztBQUVILHdDQUErQztBQTJCL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