From baba44deff7f6e3955ed4117bc4909b084c75920 Mon Sep 17 00:00:00 2001 From: ehdsouza Date: Fri, 30 Aug 2019 18:27:26 -0400 Subject: [PATCH] fix(model): remove _from_dict step in _convert_model --- ibm_cloud_sdk_core/base_service.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ibm_cloud_sdk_core/base_service.py b/ibm_cloud_sdk_core/base_service.py index c37b5b7..e583913 100644 --- a/ibm_cloud_sdk_core/base_service.py +++ b/ibm_cloud_sdk_core/base_service.py @@ -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