code: def marshal(self, values):
          
          if values is not None:
              return [super(EntityCollection, self).marshal(v) for v in values]
docs: Turn a list of entities into a list of dictionaries.
  
          :param values: The entities to serialize.
          :type values: List[stravalib.model.BaseEntity]
          :return: List of dictionaries of attributes
          :rtype: List[Dict[str, Any]]