toAuditTaskStatus method

AuditTaskStatus toAuditTaskStatus()

Implementation

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