toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PreviewStatus.workInProgress:
      return 'WORK_IN_PROGRESS';
    case PreviewStatus.completed:
      return 'COMPLETED';
  }
}