toInsightCategory method

InsightCategory toInsightCategory()

Implementation

InsightCategory toInsightCategory() {
  switch (this) {
    case 'FAULT':
      return InsightCategory.fault;
  }
  throw Exception('$this is not known in enum InsightCategory');
}