"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.CustomerPortalAvailableCreditBalanceToJSON = exports.CustomerPortalAvailableCreditBalanceFromJSONTyped = exports.CustomerPortalAvailableCreditBalanceFromJSON = void 0;
const runtime_1 = require("../runtime");
function CustomerPortalAvailableCreditBalanceFromJSON(json) {
    return CustomerPortalAvailableCreditBalanceFromJSONTyped(json, false);
}
exports.CustomerPortalAvailableCreditBalanceFromJSON = CustomerPortalAvailableCreditBalanceFromJSON;
function CustomerPortalAvailableCreditBalanceFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'startTime': !(0, runtime_1.exists)(json, 'start_time') ? undefined : (new Date(json['start_time'])),
        'availableBalance': !(0, runtime_1.exists)(json, 'available_balance') ? undefined : json['available_balance'],
        'endTime': !(0, runtime_1.exists)(json, 'end_time') ? undefined : (new Date(json['end_time'])),
    };
}
exports.CustomerPortalAvailableCreditBalanceFromJSONTyped = CustomerPortalAvailableCreditBalanceFromJSONTyped;
function CustomerPortalAvailableCreditBalanceToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'start_time': value.startTime === undefined ? undefined : (value.startTime.toISOString()),
        'available_balance': value.availableBalance,
        'end_time': value.endTime === undefined ? undefined : (value.endTime.toISOString()),
    };
}
exports.CustomerPortalAvailableCreditBalanceToJSON = CustomerPortalAvailableCreditBalanceToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJQb3J0YWxBdmFpbGFibGVDcmVkaXRCYWxhbmNlLmpzIiwic291cmNlUm9vdCI6I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