toInsightType method

InsightType toInsightType()

Implementation

InsightType toInsightType() {
  switch (this) {
    case 'ApiCallRateInsight':
      return InsightType.apiCallRateInsight;
  }
  throw Exception('$this is not known in enum InsightType');
}