code: def _as_dict(self):
          
          values = self._dynamic_columns or {}
          for name, col in self._columns.items():
              values[name] = col.to_database(getattr(self, name, None))
          return values
docs: Returns a map of column names to cleaned values