toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case UpdateStatus.inProgress:
      return 'InProgress';
    case UpdateStatus.failed:
      return 'Failed';
    case UpdateStatus.cancelled:
      return 'Cancelled';
    case UpdateStatus.successful:
      return 'Successful';
  }
}