wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.09 kB
JavaScript
import { TransactionFromJSON, } from './Transaction';
/**
* Check if a given object implements the TransactionSearchResponse interface.
*/
export function instanceOfTransactionSearchResponse(value) {
return true;
}
export function TransactionSearchResponseFromJSON(json) {
return TransactionSearchResponseFromJSONTyped(json, false);
}
export function TransactionSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(TransactionFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function TransactionSearchResponseToJSON(json) {
return TransactionSearchResponseToJSONTyped(json, false);
}
export function TransactionSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}