|
@@ -23,3 +23,20 @@ class PropsBase(Base):
|
|
|
return LiteralObjectVar.create(
|
|
|
{format.to_camel_case(key): value for key, value in self.dict().items()}
|
|
|
).json()
|
|
|
+
|
|
|
+ def dict(self, *args, **kwargs):
|
|
|
+ """Convert the object to a dictionary.
|
|
|
+
|
|
|
+ Keys will be converted to camelCase.
|
|
|
+
|
|
|
+ Args:
|
|
|
+ *args: Arguments to pass to the parent class.
|
|
|
+ **kwargs: Keyword arguments to pass to the parent class.
|
|
|
+
|
|
|
+ Returns:
|
|
|
+ The object as a dictionary.
|
|
|
+ """
|
|
|
+ return {
|
|
|
+ format.to_camel_case(key): value
|
|
|
+ for key, value in super().dict(*args, **kwargs).items()
|
|
|
+ }
|