def METHOD_NAME(self) -> Optional[UserSettingSerializer]:
    provider_type = self.type
    icon = self.get_icon
    if not icon:
        icon = provider_type().icon_url()
    return UserSettingSerializer(
        data={
            "title": self.name,
            "component": "ak-user-settings-source-oauth",
            "configure_url": reverse(
                "authentik_sources_oauth:oauth-client-login",
                kwargs={"source_slug": self.slug},
            ),
            "icon_url": icon,
        }
    )