"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.RevenueBreakdownToJSON = exports.RevenueBreakdownFromJSONTyped = exports.RevenueBreakdownFromJSON = void 0;
const runtime_1 = require("../runtime");
const LineItems_1 = require("./LineItems");
function RevenueBreakdownFromJSON(json) {
    return RevenueBreakdownFromJSONTyped(json, false);
}
exports.RevenueBreakdownFromJSON = RevenueBreakdownFromJSON;
function RevenueBreakdownFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'totalRevenue': !(0, runtime_1.exists)(json, 'total_revenue') ? undefined : json['total_revenue'],
        'lineItems': !(0, runtime_1.exists)(json, 'line_items') ? undefined : (json['line_items'].map(LineItems_1.LineItemsFromJSON)),
    };
}
exports.RevenueBreakdownFromJSONTyped = RevenueBreakdownFromJSONTyped;
function RevenueBreakdownToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'total_revenue': value.totalRevenue,
        'line_items': value.lineItems === undefined ? undefined : (value.lineItems.map(LineItems_1.LineItemsToJSON)),
    };
}
exports.RevenueBreakdownToJSON = RevenueBreakdownToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmV2ZW51ZUJyZWFrZG93bi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9SZXZlbnVlQnJlYWtkb3duLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs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