Skip to content

Commit

Permalink
fix(model): remove _from_dict step in _convert_model
Browse files Browse the repository at this point in the history
  • Loading branch information
ehdsouza committed Aug 30, 2019
1 parent a76903e commit baba44d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ibm_cloud_sdk_core/base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,6 @@ def prepare_request(self, method, url, headers=None,

@staticmethod
def _convert_model(val, classname=None):
if classname is not None and not hasattr(val, "_from_dict"):
if isinstance(val, str):
val = json_import.loads(val)
val = classname._from_dict(dict(val))
if hasattr(val, "_to_dict"):
return val._to_dict()
return val
Expand Down

0 comments on commit baba44d

Please sign in to comment.