toReviewStatus method

ReviewStatus toReviewStatus()

Implementation

ReviewStatus toReviewStatus() {
  switch (this) {
    case 'APPROVED':
      return ReviewStatus.approved;
    case 'NOT_REVIEWED':
      return ReviewStatus.notReviewed;
    case 'PENDING':
      return ReviewStatus.pending;
    case 'REJECTED':
      return ReviewStatus.rejected;
  }
  throw Exception('$this is not known in enum ReviewStatus');
}