toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case State.waiting:
      return 'WAITING';
    case State.inProgress:
      return 'IN_PROGRESS';
    case State.error:
      return 'ERROR';
    case State.completed:
      return 'COMPLETED';
    case State.cancelled:
      return 'CANCELLED';
    case State.timedOut:
      return 'TIMED_OUT';
  }
}