toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case WorkflowState.$new:
      return 'NEW';
    case WorkflowState.assigned:
      return 'ASSIGNED';
    case WorkflowState.inProgress:
      return 'IN_PROGRESS';
    case WorkflowState.deferred:
      return 'DEFERRED';
    case WorkflowState.resolved:
      return 'RESOLVED';
  }
}