Skip to content

Commit 5302c6a

Browse files
committed
Add 'mode=json' to model_dump in CreateEndpointResponseObject, CreateWebRtcConnectionRequest, and Endpoint classes
1 parent 4f433f6 commit 5302c6a

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

bandwidth/models/create_endpoint_response_object.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def to_dict(self) -> Dict[str, Any]:
8080
])
8181

8282
_dict = self.model_dump(
83+
mode='json',
8384
by_alias=True,
8485
exclude=excluded_fields,
8586
exclude_none=True,

bandwidth/models/create_web_rtc_connection_request.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def to_dict(self) -> Dict[str, Any]:
7676
])
7777

7878
_dict = self.model_dump(
79+
mode='json',
7980
by_alias=True,
8081
exclude=excluded_fields,
8182
exclude_none=True,
@@ -110,5 +111,3 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
110111
_obj.additional_properties[_key] = obj.get(_key)
111112

112113
return _obj
113-
114-

bandwidth/models/endpoint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def to_dict(self) -> Dict[str, Any]:
7979
])
8080

8181
_dict = self.model_dump(
82+
mode='json',
8283
by_alias=True,
8384
exclude=excluded_fields,
8485
exclude_none=True,

0 commit comments

Comments
 (0)