"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.DeleteSubscriptionArgsToJSON = exports.DeleteSubscriptionArgsFromJSONTyped = exports.DeleteSubscriptionArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
function DeleteSubscriptionArgsFromJSON(json) {
    return DeleteSubscriptionArgsFromJSONTyped(json, false);
}
exports.DeleteSubscriptionArgsFromJSON = DeleteSubscriptionArgsFromJSON;
function DeleteSubscriptionArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'expireAt': !(0, runtime_1.exists)(json, 'expire_at') ? undefined : (new Date(json['expire_at'])),
        'vendorId': !(0, runtime_1.exists)(json, 'vendor_id') ? undefined : json['vendor_id'],
        'customerId': !(0, runtime_1.exists)(json, 'customer_id') ? undefined : json['customer_id'],
        'atCycleEnd': !(0, runtime_1.exists)(json, 'at_cycle_end') ? undefined : json['at_cycle_end'],
    };
}
exports.DeleteSubscriptionArgsFromJSONTyped = DeleteSubscriptionArgsFromJSONTyped;
function DeleteSubscriptionArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'expire_at': value.expireAt === undefined ? undefined : (value.expireAt.toISOString()),
        'vendor_id': value.vendorId,
        'customer_id': value.customerId,
        'at_cycle_end': value.atCycleEnd,
    };
}
exports.DeleteSubscriptionArgsToJSON = DeleteSubscriptionArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVsZXRlU3Vic2NyaXB0aW9uQXJncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4u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