wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1 kB
JavaScript
import { TransactionFromJSON, } from './Transaction';
/**
* Check if a given object implements the TransactionListResponse interface.
*/
export function instanceOfTransactionListResponse(value) {
return true;
}
export function TransactionListResponseFromJSON(json) {
return TransactionListResponseFromJSONTyped(json, false);
}
export function TransactionListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(TransactionFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function TransactionListResponseToJSON(json) {
return TransactionListResponseToJSONTyped(json, false);
}
export function TransactionListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}