wallee
Version:
TypeScript/JavaScript client for wallee
33 lines (32 loc) • 1.15 kB
JavaScript
import { FeatureFromJSON, FeatureToJSON, } from './Feature';
/**
* Check if a given object implements the DunningFlowLevelProcessor interface.
*/
export function instanceOfDunningFlowLevelProcessor(value) {
return true;
}
export function DunningFlowLevelProcessorFromJSON(json) {
return DunningFlowLevelProcessorFromJSONTyped(json, false);
}
export function DunningFlowLevelProcessorFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'feature': json['feature'] == null ? undefined : FeatureFromJSON(json['feature']),
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
'id': json['id'] == null ? undefined : json['id'],
};
}
export function DunningFlowLevelProcessorToJSON(json) {
return DunningFlowLevelProcessorToJSONTyped(json, false);
}
export function DunningFlowLevelProcessorToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'feature': FeatureToJSON(value['feature']),
};
}