wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.13 kB
JavaScript
import { TransactionVoidFromJSON, } from './TransactionVoid';
/**
* Check if a given object implements the TransactionVoidSearchResponse interface.
*/
export function instanceOfTransactionVoidSearchResponse(value) {
return true;
}
export function TransactionVoidSearchResponseFromJSON(json) {
return TransactionVoidSearchResponseFromJSONTyped(json, false);
}
export function TransactionVoidSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(TransactionVoidFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function TransactionVoidSearchResponseToJSON(json) {
return TransactionVoidSearchResponseToJSONTyped(json, false);
}
export function TransactionVoidSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}