wallee
Version:
TypeScript/JavaScript client for wallee
36 lines (35 loc) • 1.18 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDebtCollector = instanceOfDebtCollector;
exports.DebtCollectorFromJSON = DebtCollectorFromJSON;
exports.DebtCollectorFromJSONTyped = DebtCollectorFromJSONTyped;
exports.DebtCollectorToJSON = DebtCollectorToJSON;
exports.DebtCollectorToJSONTyped = DebtCollectorToJSONTyped;
/**
* Check if a given object implements the DebtCollector interface.
*/
function instanceOfDebtCollector(value) {
return true;
}
function DebtCollectorFromJSON(json) {
return DebtCollectorFromJSONTyped(json, false);
}
function DebtCollectorFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
'id': json['id'] == null ? undefined : json['id'],
};
}
function DebtCollectorToJSON(json) {
return DebtCollectorToJSONTyped(json, false);
}
function DebtCollectorToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}