'Serialize the activity and returns the serialized activity
:returns str: the serialized activity'

def serialize_activity(self, activity):

    serialized_activity = self.serializer.dumps(activity)
    return serialized_activity
