wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.7 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDebtCollectionCaseSearchResponse = instanceOfDebtCollectionCaseSearchResponse;
exports.DebtCollectionCaseSearchResponseFromJSON = DebtCollectionCaseSearchResponseFromJSON;
exports.DebtCollectionCaseSearchResponseFromJSONTyped = DebtCollectionCaseSearchResponseFromJSONTyped;
exports.DebtCollectionCaseSearchResponseToJSON = DebtCollectionCaseSearchResponseToJSON;
exports.DebtCollectionCaseSearchResponseToJSONTyped = DebtCollectionCaseSearchResponseToJSONTyped;
const DebtCollectionCase_1 = require("./DebtCollectionCase");
/**
* Check if a given object implements the DebtCollectionCaseSearchResponse interface.
*/
function instanceOfDebtCollectionCaseSearchResponse(value) {
return true;
}
function DebtCollectionCaseSearchResponseFromJSON(json) {
return DebtCollectionCaseSearchResponseFromJSONTyped(json, false);
}
function DebtCollectionCaseSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(DebtCollectionCase_1.DebtCollectionCaseFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function DebtCollectionCaseSearchResponseToJSON(json) {
return DebtCollectionCaseSearchResponseToJSONTyped(json, false);
}
function DebtCollectionCaseSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}