docs: def from_entity(cls, entity: Entity) -> 'DictModel':
          """Convert the entity to a dictionary record """
          dict_obj = {}
          for field_name in entity.meta_.attributes:
              dict_obj[field_name] = getattr(entity, field_name)
          return dict_obj