toDetectMitigationActionsTaskStatus method

DetectMitigationActionsTaskStatus toDetectMitigationActionsTaskStatus()

Implementation

DetectMitigationActionsTaskStatus toDetectMitigationActionsTaskStatus() {
  switch (this) {
    case 'IN_PROGRESS':
      return DetectMitigationActionsTaskStatus.inProgress;
    case 'SUCCESSFUL':
      return DetectMitigationActionsTaskStatus.successful;
    case 'FAILED':
      return DetectMitigationActionsTaskStatus.failed;
    case 'CANCELED':
      return DetectMitigationActionsTaskStatus.canceled;
  }
  throw Exception(
      '$this is not known in enum DetectMitigationActionsTaskStatus');
}