@classmethod
def pubsub_serialize(cls, instance, serializer):
    """ Serialize the given model instance before sending it to the users.

        :param instance: Model instance
        :param serializer: Drf serializer
        :return:
        """
    return serializer.to_representation(instance)
