toWorkflowState method

WorkflowState toWorkflowState()

Implementation

WorkflowState toWorkflowState() {
  switch (this) {
    case 'NEW':
      return WorkflowState.$new;
    case 'ASSIGNED':
      return WorkflowState.assigned;
    case 'IN_PROGRESS':
      return WorkflowState.inProgress;
    case 'DEFERRED':
      return WorkflowState.deferred;
    case 'RESOLVED':
      return WorkflowState.resolved;
  }
  throw Exception('$this is not known in enum WorkflowState');
}