def model_dump(self) -> dict[str, Any]:
params_names = IOMessage._get_parameters_names()
d = asdict(self)
content = {k: v for k, v in d.items() if k not in params_names}
retval = {k: v for k, v in d.items() if k in params_names}
retval["content"] = content
retval["type"] = self.type
return retval