11 lines
336 B
Python
11 lines
336 B
Python
from databuild.py_proto_out.databuild.v1 import *
|
|
from betterproto2 import Casing, OutputFormat
|
|
|
|
|
|
def to_dict(d) -> dict:
|
|
"""Helper for creating proper dicts from protobuf derived dataclasses."""
|
|
return d.to_dict(
|
|
casing=Casing.SNAKE,
|
|
output_format=OutputFormat.PYTHON,
|
|
include_default_values=True
|
|
)
|