"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.CreditPlanInputArgsToJSON = exports.CreditPlanInputArgsFromJSONTyped = exports.CreditPlanInputArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
function CreditPlanInputArgsFromJSON(json) {
    return CreditPlanInputArgsFromJSONTyped(json, false);
}
exports.CreditPlanInputArgsFromJSON = CreditPlanInputArgsFromJSON;
function CreditPlanInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'intervalBetweenGrants': !(0, runtime_1.exists)(json, 'interval_between_grants') ? undefined : json['interval_between_grants'],
        'price': !(0, runtime_1.exists)(json, 'price') ? undefined : json['price'],
        'amount': json['amount'],
        'grantExpirationUnit': !(0, runtime_1.exists)(json, 'grant_expiration_unit') ? undefined : json['grant_expiration_unit'],
        'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
        'paymentsPerGrant': !(0, runtime_1.exists)(json, 'payments_per_grant') ? undefined : json['payments_per_grant'],
        'intervalBetweenPayments': !(0, runtime_1.exists)(json, 'interval_between_payments') ? undefined : json['interval_between_payments'],
        'grantExpirationLength': !(0, runtime_1.exists)(json, 'grant_expiration_length') ? undefined : json['grant_expiration_length'],
    };
}
exports.CreditPlanInputArgsFromJSONTyped = CreditPlanInputArgsFromJSONTyped;
function CreditPlanInputArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'interval_between_grants': value.intervalBetweenGrants,
        'price': value.price,
        'amount': value.amount,
        'grant_expiration_unit': value.grantExpirationUnit,
        'description': value.description,
        'payments_per_grant': value.paymentsPerGrant,
        'interval_between_payments': value.intervalBetweenPayments,
        'grant_expiration_length': value.grantExpirationLength,
    };
}
exports.CreditPlanInputArgsToJSON = CreditPlanInputArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3JlZGl0UGxhbklucHV0QXJncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9DcmVkaXRQbGFuSW5wdXRBcmdzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs7O0dBVUc7OztBQUVILHdDQUErQztBQXlEL0MsU0FBZ0IsMkJBQTJCLENBQUMsSUFBUztJQUNqRCxPQUFPLGdDQUFnQyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztBQUN6RCxDQUFDO0FBRkQsa0VBRUM7QUFFRCxTQUFnQixnQ0FBZ0MsQ0FBQyxJQUFTLEVBQUUsbUJBQTRCO0lBQ3BGLElBQUksQ0FBQyxJQUFJLEtBQUssU0FBUyxDQUFDLElBQUksQ0FBQyxJQUFJLEtBQUssSUFBSSxDQUFDLEVBQUU7UUFDekMsT0FBTyxJQUFJLENBQUM7S0FDZjtJQUNELE9BQU87UUFFSCx1QkFBdUIsRUFBRSxDQUFDLElBQUEsZ0JBQU0sRUFBQyxJQUFJLEVBQUUseUJBQXlCLENBQUMsQ0FBQyxDQUFDLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMseUJBQXlCLENBQUM7UUFDL0csT0FBTyxFQUFFLENBQUMsSUFBQSxnQkFBTSxFQUFDLElBQUksRUFBRSxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO1FBQzNELFFBQVEsRUFBRSxJQUFJLENBQUMsUU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