"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.UpdateCreditTopOffPlanInputArgsToJSON = exports.UpdateCreditTopOffPlanInputArgsFromJSONTyped = exports.UpdateCreditTopOffPlanInputArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
function UpdateCreditTopOffPlanInputArgsFromJSON(json) {
    return UpdateCreditTopOffPlanInputArgsFromJSONTyped(json, false);
}
exports.UpdateCreditTopOffPlanInputArgsFromJSON = UpdateCreditTopOffPlanInputArgsFromJSON;
function UpdateCreditTopOffPlanInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'price': !(0, runtime_1.exists)(json, 'price') ? undefined : json['price'],
        'chargeImmediately': !(0, runtime_1.exists)(json, 'charge_immediately') ? undefined : json['charge_immediately'],
        'grantAmount': !(0, runtime_1.exists)(json, 'grant_amount') ? undefined : json['grant_amount'],
        'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
        'triggerAmount': !(0, runtime_1.exists)(json, 'trigger_amount') ? undefined : json['trigger_amount'],
        'expirationLength': !(0, runtime_1.exists)(json, 'expiration_length') ? undefined : json['expiration_length'],
        'expirationUnit': !(0, runtime_1.exists)(json, 'expiration_unit') ? undefined : json['expiration_unit'],
    };
}
exports.UpdateCreditTopOffPlanInputArgsFromJSONTyped = UpdateCreditTopOffPlanInputArgsFromJSONTyped;
function UpdateCreditTopOffPlanInputArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'price': value.price,
        'charge_immediately': value.chargeImmediately,
        'grant_amount': value.grantAmount,
        'description': value.description,
        'trigger_amount': value.triggerAmount,
        'expiration_length': value.expirationLength,
        'expiration_unit': value.expirationUnit,
    };
}
exports.UpdateCreditTopOffPlanInputArgsToJSON = UpdateCreditTopOffPlanInputArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXBkYXRlQ3JlZGl0VG9wT2ZmUGxhbklucHV0QXJncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9VcGRhdGVDcmVkaXRUb3BPZmZQbGFuSW5wdXRBcmdzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs7O0dBVUc7OztBQUVILHdDQUErQztBQW1EL0MsU0FBZ0IsdUNBQXVDLENBQUMsSUFBUztJQUM3RCxPQUFPLDRDQUE0QyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztBQUNyRSxDQUFDO0FBRkQsMEZBRUM7QUFFRCxTQUFnQiw0Q0FBNEMsQ0FBQyxJQUFTLEVBQUUsbUJBQTRCO0lBQ2hHLElBQUksQ0FBQyxJQUFJLEtBQUssU0FBUyxDQUFDLElBQUksQ0FBQyxJQUFJLEtBQUssSUFBSSxDQUFDLEVBQUU7UUFDekMsT0FBTyxJQUFJLENBQUM7S0FDZjtJQUNELE9BQU87UUFFSCxPQUFPLEVBQUUsQ0FBQyxJQUFBLGdCQUFNLEVBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7UUFDM0QsbUJBQW1CLEVBQUUsQ0FBQyxJQUFBLGdCQUFNLEVBQUMsSUFBSSxFQUFFLG9CQUFvQixDQUFDLENBQUMsQ0FBQyxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsSUF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