toContributorInsightsStatus method

ContributorInsightsStatus toContributorInsightsStatus()

Implementation

ContributorInsightsStatus toContributorInsightsStatus() {
  switch (this) {
    case 'ENABLING':
      return ContributorInsightsStatus.enabling;
    case 'ENABLED':
      return ContributorInsightsStatus.enabled;
    case 'DISABLING':
      return ContributorInsightsStatus.disabling;
    case 'DISABLED':
      return ContributorInsightsStatus.disabled;
    case 'FAILED':
      return ContributorInsightsStatus.failed;
  }
  throw Exception('$this is not known in enum ContributorInsightsStatus');
}