def METHOD_NAME(self, attributes):
    if "url" in attributes:  # pragma no branch
        self._url = self._makeStringAttribute(attributes["url"])
    if "required_status_checks" in attributes:  # pragma no branch
        self._required_status_checks = self._makeClassAttribute(
            github.RequiredStatusChecks.RequiredStatusChecks,
            attributes["required_status_checks"],
        )
    if "enforce_admins" in attributes:  # pragma no branch
        self._enforce_admins = self._makeBoolAttribute(
            attributes["enforce_admins"]["enabled"]
        )
    if "required_pull_request_reviews" in attributes:  # pragma no branch
        self._required_pull_request_reviews = self._makeClassAttribute(
            github.RequiredPullRequestReviews.RequiredPullRequestReviews,
            attributes["required_pull_request_reviews"],
        )
    if "restrictions" in attributes:  # pragma no branch
        self._user_push_restrictions = attributes["restrictions"]["users_url"]
        self._team_push_restrictions = attributes["restrictions"]["teams_url"]