from typing import Dict
from typing import Any
from typing import Optional


def _check_default_endpoint_permission(api_name_permissions: Dict[str, Any], extra_data: Optional[Dict[str, Any]]) -> Optional[bool]:
    """Helper method which parses an endpoint with a default permission policy
    Args:
        api_name_permissions: The specific section of the self.permissions_document for the endpoint being checked
        extra_data: The extra data from is_key_allowed (not used in this function, but required for compatibility)
    Returns:
        Boolean of allowed/disallowed if able to be parsed correctly, else None
    """
    return api_name_permissions.get("allowed")