def METHOD_NAME(self) -> Optional[JsonDict]:
    if not self._config.server.serve_client_wellknown:
        return None
    result = {"m.homeserver": {"base_url": self._config.server.public_baseurl}}
    if self._config.registration.default_identity_server:
        result["m.identity_server"] = {
            "base_url": self._config.registration.default_identity_server
        }
    # We use the MSC3861 values as they are used by multiple MSCs
    if self._config.experimental.msc3861.enabled:
        result["org.matrix.msc2965.authentication"] = {
            "issuer": self._config.experimental.msc3861.issuer
        }
        if self._config.experimental.msc3861.account_management_url is not None:
            result["org.matrix.msc2965.authentication"][
                "account"
            ] = self._config.experimental.msc3861.account_management_url
    if self._config.server.extra_well_known_client_content:
        for (
            key,
            value,
        ) in self._config.server.extra_well_known_client_content.items():
            if key not in result:
                result[key] = value
    return result