"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.CreateCreditTopOffPlanInputArgsToJSON = exports.CreateCreditTopOffPlanInputArgsFromJSONTyped = exports.CreateCreditTopOffPlanInputArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
function CreateCreditTopOffPlanInputArgsFromJSON(json) {
    return CreateCreditTopOffPlanInputArgsFromJSONTyped(json, false);
}
exports.CreateCreditTopOffPlanInputArgsFromJSON = CreateCreditTopOffPlanInputArgsFromJSON;
function CreateCreditTopOffPlanInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'price': json['price'],
        'chargeImmediately': !(0, runtime_1.exists)(json, 'charge_immediately') ? undefined : json['charge_immediately'],
        'grantAmount': json['grant_amount'],
        'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
        'triggerAmount': 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.CreateCreditTopOffPlanInputArgsFromJSONTyped = CreateCreditTopOffPlanInputArgsFromJSONTyped;
function CreateCreditTopOffPlanInputArgsToJSON(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.CreateCreditTopOffPlanInputArgsToJSON = CreateCreditTopOffPlanInputArgsToJSON;
//#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