"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.CustomerPortalAccruedRevenueLineItemToJSON = exports.CustomerPortalAccruedRevenueLineItemFromJSONTyped = exports.CustomerPortalAccruedRevenueLineItemFromJSON = void 0;
const runtime_1 = require("../runtime");
function CustomerPortalAccruedRevenueLineItemFromJSON(json) {
    return CustomerPortalAccruedRevenueLineItemFromJSONTyped(json, false);
}
exports.CustomerPortalAccruedRevenueLineItemFromJSON = CustomerPortalAccruedRevenueLineItemFromJSON;
function CustomerPortalAccruedRevenueLineItemFromJSONTyped(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.CustomerPortalAccruedRevenueLineItemFromJSONTyped = CustomerPortalAccruedRevenueLineItemFromJSONTyped;
function CustomerPortalAccruedRevenueLineItemToJSON(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.CustomerPortalAccruedRevenueLineItemToJSON = CustomerPortalAccruedRevenueLineItemToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJQb3J0YWxBY2NydWVkUmV2ZW51ZUxpbmVJdGVtLm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