def METHOD_NAME(self):
    """Returns the OSMSiteMapSerializer class when list API is invoked."""
    form_pk = self.kwargs.get("pk")
    if self.action == "list" and form_pk is None:
        return OSMSiteMapSerializer
    return super().METHOD_NAME()