UNPKG

wallee

Version:
37 lines (36 loc) 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfInvoiceListResponse = instanceOfInvoiceListResponse; exports.InvoiceListResponseFromJSON = InvoiceListResponseFromJSON; exports.InvoiceListResponseFromJSONTyped = InvoiceListResponseFromJSONTyped; exports.InvoiceListResponseToJSON = InvoiceListResponseToJSON; exports.InvoiceListResponseToJSONTyped = InvoiceListResponseToJSONTyped; const TransactionInvoice_1 = require("./TransactionInvoice"); /** * Check if a given object implements the InvoiceListResponse interface. */ function instanceOfInvoiceListResponse(value) { return true; } function InvoiceListResponseFromJSON(json) { return InvoiceListResponseFromJSONTyped(json, false); } function InvoiceListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(TransactionInvoice_1.TransactionInvoiceFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function InvoiceListResponseToJSON(json) { return InvoiceListResponseToJSONTyped(json, false); } function InvoiceListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }