wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.08 kB
JavaScript
import { TransactionLineItemVersionFromJSON, } from './TransactionLineItemVersion';
/**
* Check if a given object implements the LineItemVersionListResponse interface.
*/
export function instanceOfLineItemVersionListResponse(value) {
return true;
}
export function LineItemVersionListResponseFromJSON(json) {
return LineItemVersionListResponseFromJSONTyped(json, false);
}
export function LineItemVersionListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(TransactionLineItemVersionFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function LineItemVersionListResponseToJSON(json) {
return LineItemVersionListResponseToJSONTyped(json, false);
}
export function LineItemVersionListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}