"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.RevenueRecognitionEntryToJSON = exports.RevenueRecognitionEntryFromJSONTyped = exports.RevenueRecognitionEntryFromJSON = void 0;
const runtime_1 = require("../runtime");
function RevenueRecognitionEntryFromJSON(json) {
    return RevenueRecognitionEntryFromJSONTyped(json, false);
}
exports.RevenueRecognitionEntryFromJSON = RevenueRecognitionEntryFromJSON;
function RevenueRecognitionEntryFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'booked': !(0, runtime_1.exists)(json, 'booked') ? undefined : json['booked'],
        'month': !(0, runtime_1.exists)(json, 'month') ? undefined : (new Date(json['month'])),
        'deferred': !(0, runtime_1.exists)(json, 'deferred') ? undefined : json['deferred'],
        'recognized': !(0, runtime_1.exists)(json, 'recognized') ? undefined : json['recognized'],
    };
}
exports.RevenueRecognitionEntryFromJSONTyped = RevenueRecognitionEntryFromJSONTyped;
function RevenueRecognitionEntryToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'booked': value.booked,
        'month': value.month === undefined ? undefined : (value.month.toISOString()),
        'deferred': value.deferred,
        'recognized': value.recognized,
    };
}
exports.RevenueRecognitionEntryToJSON = RevenueRecognitionEntryToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmV2ZW51ZVJlY29nbml0aW9uRW50cnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvUmV2ZW51ZVJlY29nbml0aW9uRW50cnkudHMiXSwibmFtZX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