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