toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Status.inProgress:
      return 'InProgress';
    case Status.completed:
      return 'Completed';
    case Status.failed:
      return 'Failed';
    case Status.cancelled:
      return 'Cancelled';
    case Status.cancelling:
      return 'Cancelling';
  }
}