File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -174,9 +174,7 @@ public function getAllDeals(
174174 //handle errors defined at the API level
175175 $ this ->validateResponse ($ _httpResponse , $ _httpContext );
176176
177- $ mapper = $ this ->getJsonMapper ();
178-
179- return CamelCaseHelper::keysToCamelCase ($ mapper ->mapClass ($ response ->body , 'Pipedrive \\Models \\GetDeals ' ));
177+ return CamelCaseHelper::keysToCamelCase ($ response ->body );
180178 }
181179
182180 /**
@@ -508,9 +506,7 @@ public function getDetailsOfADeal(
508506 //handle errors defined at the API level
509507 $ this ->validateResponse ($ _httpResponse , $ _httpContext );
510508
511- $ mapper = $ this ->getJsonMapper ();
512-
513- return CamelCaseHelper::keysToCamelCase ($ mapper ->mapClass ($ response ->body , 'Pipedrive \\Models \\GetDeal ' ));
509+ return CamelCaseHelper::keysToCamelCase ($ response ->body );
514510 }
515511
516512 /**
You can’t perform that action at this time.
0 commit comments