"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.PastInvoicesToJSON = exports.PastInvoicesFromJSONTyped = exports.PastInvoicesFromJSON = void 0;
const runtime_1 = require("../runtime");
const PastInvoice_1 = require("./PastInvoice");
function PastInvoicesFromJSON(json) {
    return PastInvoicesFromJSONTyped(json, false);
}
exports.PastInvoicesFromJSON = PastInvoicesFromJSON;
function PastInvoicesFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'invoices': !(0, runtime_1.exists)(json, 'invoices') ? undefined : (json['invoices'].map(PastInvoice_1.PastInvoiceFromJSON)),
        'sortDirection': !(0, runtime_1.exists)(json, 'sort_direction') ? undefined : json['sort_direction'],
        'forwardSecondarySortOffset': !(0, runtime_1.exists)(json, 'forward_secondary_sort_offset') ? undefined : json['forward_secondary_sort_offset'],
        'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
        'forwardSortOffset': !(0, runtime_1.exists)(json, 'forward_sort_offset') ? undefined : json['forward_sort_offset'],
        'sortColumn': !(0, runtime_1.exists)(json, 'sort_column') ? undefined : json['sort_column'],
    };
}
exports.PastInvoicesFromJSONTyped = PastInvoicesFromJSONTyped;
function PastInvoicesToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'invoices': value.invoices === undefined ? undefined : (value.invoices.map(PastInvoice_1.PastInvoiceToJSON)),
        'sort_direction': value.sortDirection,
        'forward_secondary_sort_offset': value.forwardSecondarySortOffset,
        'limit': value.limit,
        'forward_sort_offset': value.forwardSortOffset,
        'sort_column': value.sortColumn,
    };
}
exports.PastInvoicesToJSON = PastIn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