code: def element_to_objects(payload: Dict) -> List:
      
      entities = []
      cls = MAPPINGS.get(payload.get('type'))
      if not cls:
          return []
  
      transformed = transform_attributes(payload, cls)
      entity = cls(**transformed)
  
      if hasattr(entity, "post_receive"):
          entity.post_receive()
  
      entities.append(entity)
  
      return entities
docs: Transform an Element to a list of entities recursively.