We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents feea790 + f9c351a commit 45e7a30Copy full SHA for 45e7a30
betterproto/__init__.py
@@ -723,14 +723,14 @@ def to_dict(self, casing: Casing = Casing.CAMEL) -> dict:
723
output[cased_name] = v
724
elif isinstance(v, list):
725
# Convert each item.
726
- v = [i.to_dict() for i in v]
+ v = [i.to_dict(casing) for i in v]
727
728
elif v._serialized_on_wire:
729
- output[cased_name] = v.to_dict()
+ output[cased_name] = v.to_dict(casing)
730
elif meta.proto_type == "map":
731
for k in v:
732
if hasattr(v[k], "to_dict"):
733
- v[k] = v[k].to_dict()
+ v[k] = v[k].to_dict(casing)
734
735
if v:
736
0 commit comments