getPermission method

  1. @override
ClaimPermission getPermission(
  1. String permission
)
inherited

Implementation

@override
ClaimPermission getPermission(String permission) {
  return ClaimPermission(
      _getClaim<String>(_orgCodeClaim) ?? '',
      (_getClaim<List<String>>(_permissionsClaim) ?? [])
          .contains(permission));
}