Is your feature request related to a problem? Please describe.
Allowing the user to use a dataclass as event payload would allow reusability of code and simplification.
Describe the solution you'd like
The library should use reflection to parse the dataclasses provided by the user and generate its internal ComplexDataFormat on its own. This would allow a more streamlined usage as in the java client implementation.
Is your feature request related to a problem? Please describe. Allowing the user to use a dataclass as event payload would allow reusability of code and simplification.
Describe the solution you'd like The library should use reflection to parse the dataclasses provided by the user and generate its internal ComplexDataFormat on its own. This would allow a more streamlined usage as in the java client implementation.
Describe alternatives you've considered
Additional context