toPolicyEvaluationDecisionType method

PolicyEvaluationDecisionType toPolicyEvaluationDecisionType()

Implementation

PolicyEvaluationDecisionType toPolicyEvaluationDecisionType() {
  switch (this) {
    case 'allowed':
      return PolicyEvaluationDecisionType.allowed;
    case 'explicitDeny':
      return PolicyEvaluationDecisionType.explicitDeny;
    case 'implicitDeny':
      return PolicyEvaluationDecisionType.implicitDeny;
  }
  throw Exception('$this is not known in enum PolicyEvaluationDecisionType');
}