toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Status.notStarted:
      return 'NOT_STARTED';
    case Status.inProgress:
      return 'IN_PROGRESS';
    case Status.failed:
      return 'FAILED';
    case Status.completed:
      return 'COMPLETED';
  }
}