Closed kiflowb777 closed 1 year ago
It is built into dataclasses already, if I am not misunderstanding you: https://docs.python.org/3/library/dataclasses.html#dataclasses.asdict
@gunnarx your answer is correct. This feature is out of scope of this library.
Have you considered adding a method .as_dict() that creates a dictionary from a dataclass object.
Example code: