wallee
Version:
TypeScript/JavaScript client for wallee
40 lines (39 loc) • 1.61 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDunningFlowLevelProcessor = instanceOfDunningFlowLevelProcessor;
exports.DunningFlowLevelProcessorFromJSON = DunningFlowLevelProcessorFromJSON;
exports.DunningFlowLevelProcessorFromJSONTyped = DunningFlowLevelProcessorFromJSONTyped;
exports.DunningFlowLevelProcessorToJSON = DunningFlowLevelProcessorToJSON;
exports.DunningFlowLevelProcessorToJSONTyped = DunningFlowLevelProcessorToJSONTyped;
const Feature_1 = require("./Feature");
/**
* Check if a given object implements the DunningFlowLevelProcessor interface.
*/
function instanceOfDunningFlowLevelProcessor(value) {
return true;
}
function DunningFlowLevelProcessorFromJSON(json) {
return DunningFlowLevelProcessorFromJSONTyped(json, false);
}
function DunningFlowLevelProcessorFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'feature': json['feature'] == null ? undefined : (0, Feature_1.FeatureFromJSON)(json['feature']),
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
'id': json['id'] == null ? undefined : json['id'],
};
}
function DunningFlowLevelProcessorToJSON(json) {
return DunningFlowLevelProcessorToJSONTyped(json, false);
}
function DunningFlowLevelProcessorToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'feature': (0, Feature_1.FeatureToJSON)(value['feature']),
};
}