wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.25 kB
JavaScript
import { DebtCollectorConfigurationFromJSON, } from './DebtCollectorConfiguration';
/**
* Check if a given object implements the DebtCollectorConfigurationSearchResponse interface.
*/
export function instanceOfDebtCollectorConfigurationSearchResponse(value) {
return true;
}
export function DebtCollectorConfigurationSearchResponseFromJSON(json) {
return DebtCollectorConfigurationSearchResponseFromJSONTyped(json, false);
}
export function DebtCollectorConfigurationSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(DebtCollectorConfigurationFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function DebtCollectorConfigurationSearchResponseToJSON(json) {
return DebtCollectorConfigurationSearchResponseToJSONTyped(json, false);
}
export function DebtCollectorConfigurationSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}