"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.AccruedRevenueLineItemToJSON = exports.AccruedRevenueLineItemFromJSONTyped = exports.AccruedRevenueLineItemFromJSON = void 0;
const runtime_1 = require("../runtime");
function AccruedRevenueLineItemFromJSON(json) {
    return AccruedRevenueLineItemFromJSONTyped(json, false);
}
exports.AccruedRevenueLineItemFromJSON = AccruedRevenueLineItemFromJSON;
function AccruedRevenueLineItemFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'revenue': !(0, runtime_1.exists)(json, 'revenue') ? undefined : json['revenue'],
        'itemType': !(0, runtime_1.exists)(json, 'item_type') ? undefined : json['item_type'],
        'itemIdentifier': !(0, runtime_1.exists)(json, 'item_identifier') ? undefined : json['item_identifier'],
        'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
    };
}
exports.AccruedRevenueLineItemFromJSONTyped = AccruedRevenueLineItemFromJSONTyped;
function AccruedRevenueLineItemToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'revenue': value.revenue,
        'item_type': value.itemType,
        'item_identifier': value.itemIdentifier,
        'metadata': value.metadata,
    };
}
exports.AccruedRevenueLineItemToJSON = AccruedRevenueLineItemToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWNjcnVlZFJldmVudWVMaW5lSXRlbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9BY2NydWVkUmV2ZW51ZUxpbmVJdGVtLnRzIl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