toInspectorEvent method
Implementation
InspectorEvent toInspectorEvent() {
switch (this) {
case 'ASSESSMENT_RUN_STARTED':
return InspectorEvent.assessmentRunStarted;
case 'ASSESSMENT_RUN_COMPLETED':
return InspectorEvent.assessmentRunCompleted;
case 'ASSESSMENT_RUN_STATE_CHANGED':
return InspectorEvent.assessmentRunStateChanged;
case 'FINDING_REPORTED':
return InspectorEvent.findingReported;
case 'OTHER':
return InspectorEvent.other;
}
throw Exception('$this is not known in enum InspectorEvent');
}