toReviewStatus method

ReviewStatus toReviewStatus()

Implementation

ReviewStatus toReviewStatus() {
  switch (this) {
    case 'PENDING':
      return ReviewStatus.pending;
    case 'FAILED':
      return ReviewStatus.failed;
    case 'GRANTED':
      return ReviewStatus.granted;
    case 'DENIED':
      return ReviewStatus.denied;
  }
  throw Exception('$this is not known in enum ReviewStatus');
}