'Serializes the list of activities
:param serialized_activities: the list of activities
:param serialized_activities: a dictionary with activity ids and activities'

def deserialize_activities(self, serialized_activities):

    activities = []
    if isinstance(serialized_activities, dict):
        serialized_activities = serialized_activities.values()
    if (serialized_activities is not None):
        for serialized_activity in serialized_activities:
            activity = self.serializer.loads(serialized_activity)
            activities.append(activity)
    return activities
