wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.08 kB
JavaScript
import { TransactionInvoiceFromJSON, } from './TransactionInvoice';
/**
* Check if a given object implements the InvoiceSearchResponse interface.
*/
export function instanceOfInvoiceSearchResponse(value) {
return true;
}
export function InvoiceSearchResponseFromJSON(json) {
return InvoiceSearchResponseFromJSONTyped(json, false);
}
export function InvoiceSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(TransactionInvoiceFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function InvoiceSearchResponseToJSON(json) {
return InvoiceSearchResponseToJSONTyped(json, false);
}
export function InvoiceSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}