toProposalStatus method

ProposalStatus toProposalStatus()

Implementation

ProposalStatus toProposalStatus() {
  switch (this) {
    case 'IN_PROGRESS':
      return ProposalStatus.inProgress;
    case 'APPROVED':
      return ProposalStatus.approved;
    case 'REJECTED':
      return ProposalStatus.rejected;
    case 'EXPIRED':
      return ProposalStatus.expired;
    case 'ACTION_FAILED':
      return ProposalStatus.actionFailed;
  }
  throw Exception('$this is not known in enum ProposalStatus');
}