toNodeType method
Implementation
NodeType toNodeType() {
switch (this) {
case 'CRAWLER':
return NodeType.crawler;
case 'JOB':
return NodeType.job;
case 'TRIGGER':
return NodeType.trigger;
}
throw Exception('$this is not known in enum NodeType');
}