It would be nice to have `to_json` method or `to_dict` or json serializer in prices. Now I use: ``` python price = {name: str(value) for name, value in obj._asdict().items()} del price['history'] ``` but this doesn't look good.
It would be nice to have
to_jsonmethod orto_dictor json serializer in prices.Now I use:
but this doesn't look good.