code: def to_dict(self):
          
          obj_dict = super(Table, self).to_dict()
          rows_dict = [r.to_dict() for r in self.rows]
          child_dict = {
              'type': self.__class__.__name__,
              'caption': self.caption,
              'rows': rows_dict
          }
          obj_dict.update(child_dict)
          return obj_dict
docs: Render a MessageElement as python dict.
  
          :return: Python dict representation
          :rtype: dict