toRuleEvaluationStatus method
Implementation
RuleEvaluationStatus toRuleEvaluationStatus() {
switch (this) {
case 'InProgress':
return RuleEvaluationStatus.inProgress;
case 'NoIssuesFound':
return RuleEvaluationStatus.noIssuesFound;
case 'IssuesFound':
return RuleEvaluationStatus.issuesFound;
case 'Error':
return RuleEvaluationStatus.error;
case 'Stopping':
return RuleEvaluationStatus.stopping;
case 'Stopped':
return RuleEvaluationStatus.stopped;
}
throw Exception('$this is not known in enum RuleEvaluationStatus');
}