toAuditMitigationActionsExecutionStatus method

AuditMitigationActionsExecutionStatus toAuditMitigationActionsExecutionStatus()

Implementation

AuditMitigationActionsExecutionStatus
    toAuditMitigationActionsExecutionStatus() {
  switch (this) {
    case 'IN_PROGRESS':
      return AuditMitigationActionsExecutionStatus.inProgress;
    case 'COMPLETED':
      return AuditMitigationActionsExecutionStatus.completed;
    case 'FAILED':
      return AuditMitigationActionsExecutionStatus.failed;
    case 'CANCELED':
      return AuditMitigationActionsExecutionStatus.canceled;
    case 'SKIPPED':
      return AuditMitigationActionsExecutionStatus.skipped;
    case 'PENDING':
      return AuditMitigationActionsExecutionStatus.pending;
  }
  throw Exception(
      '$this is not known in enum AuditMitigationActionsExecutionStatus');
}