diff --git a/betterproto/__init__.py b/betterproto/__init__.py index b426700..b826cc0 100644 --- a/betterproto/__init__.py +++ b/betterproto/__init__.py @@ -728,7 +728,8 @@ class Message(ABC): elif isinstance(v, list): # Convert each item. v = [i.to_dict(casing) for i in v] - output[cased_name] = v + if v: + output[cased_name] = v elif v._serialized_on_wire: output[cased_name] = v.to_dict(casing) elif meta.proto_type == "map":