"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.DeleteDiscountInputArgsToJSON = exports.DeleteDiscountInputArgsFromJSONTyped = exports.DeleteDiscountInputArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
function DeleteDiscountInputArgsFromJSON(json) {
    return DeleteDiscountInputArgsFromJSONTyped(json, false);
}
exports.DeleteDiscountInputArgsFromJSON = DeleteDiscountInputArgsFromJSON;
function DeleteDiscountInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'discountUuid': json['discount_uuid'],
        'billingCycleDuration': !(0, runtime_1.exists)(json, 'billing_cycle_duration') ? undefined : json['billing_cycle_duration'],
    };
}
exports.DeleteDiscountInputArgsFromJSONTyped = DeleteDiscountInputArgsFromJSONTyped;
function DeleteDiscountInputArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'discount_uuid': value.discountUuid,
        'billing_cycle_duration': value.billingCycleDuration,
    };
}
exports.DeleteDiscountInputArgsToJSON = DeleteDiscountInputArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVsZXRlRGlzY291bnRJbnB1dEFyZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvRGVsZXRlRGlzY291bnRJbnB1dEFyZ3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRzs7O0FBRUgsd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