toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ReceivedStatus.pendingWorkflow:
      return 'PENDING_WORKFLOW';
    case ReceivedStatus.pendingAccept:
      return 'PENDING_ACCEPT';
    case ReceivedStatus.rejected:
      return 'REJECTED';
    case ReceivedStatus.active:
      return 'ACTIVE';
    case ReceivedStatus.failedWorkflow:
      return 'FAILED_WORKFLOW';
    case ReceivedStatus.deleted:
      return 'DELETED';
    case ReceivedStatus.disabled:
      return 'DISABLED';
  }
}