"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.CustomerPortalDailyAccruedRevenueToJSON = exports.CustomerPortalDailyAccruedRevenueFromJSONTyped = exports.CustomerPortalDailyAccruedRevenueFromJSON = void 0;
const runtime_1 = require("../runtime");
const CustomerPortalAccruedRevenueLineItem_1 = require("./CustomerPortalAccruedRevenueLineItem");
function CustomerPortalDailyAccruedRevenueFromJSON(json) {
    return CustomerPortalDailyAccruedRevenueFromJSONTyped(json, false);
}
exports.CustomerPortalDailyAccruedRevenueFromJSON = CustomerPortalDailyAccruedRevenueFromJSON;
function CustomerPortalDailyAccruedRevenueFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'startTime': !(0, runtime_1.exists)(json, 'start_time') ? undefined : (new Date(json['start_time'])),
        'totalAccruedRevenue': !(0, runtime_1.exists)(json, 'total_accrued_revenue') ? undefined : json['total_accrued_revenue'],
        'lineItems': !(0, runtime_1.exists)(json, 'line_items') ? undefined : (json['line_items'].map(CustomerPortalAccruedRevenueLineItem_1.CustomerPortalAccruedRevenueLineItemFromJSON)),
        'date': !(0, runtime_1.exists)(json, 'date') ? undefined : (new Date(json['date'])),
        'endTime': !(0, runtime_1.exists)(json, 'end_time') ? undefined : (new Date(json['end_time'])),
    };
}
exports.CustomerPortalDailyAccruedRevenueFromJSONTyped = CustomerPortalDailyAccruedRevenueFromJSONTyped;
function CustomerPortalDailyAccruedRevenueToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'start_time': value.startTime === undefined ? undefined : (value.startTime.toISOString()),
        'total_accrued_revenue': value.totalAccruedRevenue,
        'line_items': value.lineItems === undefined ? undefined : (value.lineItems.map(CustomerPortalAccruedRevenueLineItem_1.CustomerPortalAccruedRevenueLineItemToJSON)),
        'date': value.date === undefined ? undefined : (value.date.toISOString()),
        'end_time': value.endTime === undefined ? undefined : (value.endTime.toISOString()),
    };
}
exports.CustomerPortalDailyAccruedRevenueToJSON = CustomerPortalDailyAccruedRevenueToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJQb3J0YWxEYWlseUFjY3J1ZWRSZXZlbnVlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvZGVnZW4vbW9kZWxzL0N1c3RvbWVyUG9ydGFsRGFpbHlBY2NydWVkUmV2ZW51ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjtBQUNwQjs7Ozs7Ozs7OztHQVVHOzs7QUFFSCx3Q0FBK0M7QUFDL0MsaUdBS2dEO0FBd0NoRCxTQUFnQix5Q0FBeUMsQ0FBQyxJQUFTO0lBQy9ELE9BQU8sOENBQThDLENBQUMsSUFBSSxFQUFFLEtBQUssQ0FBQyxDQUFDO0FBQ3ZFLENBQUM7QUFGRCw4RkFFQztBQUVELFNBQWdCLDhDQUE4QyxDQUFDLElBQVMsRUFBRSxtQkFBNEI7SUFDbEcsSUFBSSxDQUFDLElBQUksS0FBSyxTQUFTLENBQUMsSUFBSSxDQUFDLElBQUksS0FBSyxJQUFJLENBQUMsRUFBRTtRQUN6QyxPQUFPLElBQUksQ0FBQztLQUNmO0lBQ0QsT0FBTztRQUVILFdBQVcsRUFBRSxDQUFDLElBQUEsZ0JBQU0sRUFBQyxJQUFJLEVBQUUsWUFBWSxDQUFDLENBQUMsQ0FBQyxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLElBQUksQ0FBQyxJQUFJLENB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