dacite
dacite copied to clipboard
Is there a functionality like this in dacite?
Hi, I'm used to using a serialization library like Gson for java. I have some data with very abstract and confusing naming schemes and I want to map it to my own custom serialized names.
E.g. the dict might have the data 'cheeseburger_123_ab': 'foobar', whereas I would like my dataclass to have the field name 'cheeseburger' without all the excess.
Looks like marshmallow has this capability: https://user-images.githubusercontent.com/65869106/220189507-543466eb-bcc9-4051-9ef7-247d9dd8d01b.png