toInsightState method
Implementation
InsightState toInsightState() {
switch (this) {
case 'ACTIVE':
return InsightState.active;
case 'CLOSED':
return InsightState.closed;
}
throw Exception('$this is not known in enum InsightState');
}