toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ProposalStatus.inProgress:
      return 'IN_PROGRESS';
    case ProposalStatus.approved:
      return 'APPROVED';
    case ProposalStatus.rejected:
      return 'REJECTED';
    case ProposalStatus.expired:
      return 'EXPIRED';
    case ProposalStatus.actionFailed:
      return 'ACTION_FAILED';
  }
}