docs: def _serialize(self, value, attr, obj, **kwargs):
          """Serialize given datetime to timestamp."""
          if value is None:
              return None
  
          return int(datetime_to_timestamp(value))