UNPKG

wallee

Version:
37 lines (36 loc) 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfTransactionListResponse = instanceOfTransactionListResponse; exports.TransactionListResponseFromJSON = TransactionListResponseFromJSON; exports.TransactionListResponseFromJSONTyped = TransactionListResponseFromJSONTyped; exports.TransactionListResponseToJSON = TransactionListResponseToJSON; exports.TransactionListResponseToJSONTyped = TransactionListResponseToJSONTyped; const Transaction_1 = require("./Transaction"); /** * Check if a given object implements the TransactionListResponse interface. */ function instanceOfTransactionListResponse(value) { return true; } function TransactionListResponseFromJSON(json) { return TransactionListResponseFromJSONTyped(json, false); } function TransactionListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(Transaction_1.TransactionFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function TransactionListResponseToJSON(json) { return TransactionListResponseToJSONTyped(json, false); } function TransactionListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }