UNPKG

wallee

Version:
30 lines (29 loc) 990 B
import { TransactionInvoiceFromJSON, } from './TransactionInvoice'; /** * Check if a given object implements the InvoiceListResponse interface. */ export function instanceOfInvoiceListResponse(value) { return true; } export function InvoiceListResponseFromJSON(json) { return InvoiceListResponseFromJSONTyped(json, false); } export function InvoiceListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(TransactionInvoiceFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function InvoiceListResponseToJSON(json) { return InvoiceListResponseToJSONTyped(json, false); } export function InvoiceListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }