wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.02 kB
JavaScript
import { DebtCollectorFromJSON, } from './DebtCollector';
/**
* Check if a given object implements the DebtCollectorListResponse interface.
*/
export function instanceOfDebtCollectorListResponse(value) {
return true;
}
export function DebtCollectorListResponseFromJSON(json) {
return DebtCollectorListResponseFromJSONTyped(json, false);
}
export function DebtCollectorListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(DebtCollectorFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function DebtCollectorListResponseToJSON(json) {
return DebtCollectorListResponseToJSONTyped(json, false);
}
export function DebtCollectorListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}