toAccessControlRuleEffect method

AccessControlRuleEffect toAccessControlRuleEffect()

Implementation

AccessControlRuleEffect toAccessControlRuleEffect() {
  switch (this) {
    case 'ALLOW':
      return AccessControlRuleEffect.allow;
    case 'DENY':
      return AccessControlRuleEffect.deny;
  }
  throw Exception('$this is not known in enum AccessControlRuleEffect');
}