Skip to content

Commit baba44d

Browse files
committed
fix(model): remove _from_dict step in _convert_model
1 parent a76903e commit baba44d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ibm_cloud_sdk_core/base_service.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,6 @@ def prepare_request(self, method, url, headers=None,
206206

207207
@staticmethod
208208
def _convert_model(val, classname=None):
209-
if classname is not None and not hasattr(val, "_from_dict"):
210-
if isinstance(val, str):
211-
val = json_import.loads(val)
212-
val = classname._from_dict(dict(val))
213209
if hasattr(val, "_to_dict"):
214210
return val._to_dict()
215211
return val

0 commit comments

Comments
 (0)