toAuditMitigationActionsTaskStatus method

AuditMitigationActionsTaskStatus toAuditMitigationActionsTaskStatus()

Implementation

AuditMitigationActionsTaskStatus toAuditMitigationActionsTaskStatus() {
  switch (this) {
    case 'IN_PROGRESS':
      return AuditMitigationActionsTaskStatus.inProgress;
    case 'COMPLETED':
      return AuditMitigationActionsTaskStatus.completed;
    case 'FAILED':
      return AuditMitigationActionsTaskStatus.failed;
    case 'CANCELED':
      return AuditMitigationActionsTaskStatus.canceled;
  }
  throw Exception(
      '$this is not known in enum AuditMitigationActionsTaskStatus');
}