toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Status.inProgress:
      return 'IN_PROGRESS';
    case Status.succeeded:
      return 'SUCCEEDED';
    case Status.failed:
      return 'FAILED';
  }
}