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(
174
174
//handle errors defined at the API level
175
175
$ this ->validateResponse ($ _httpResponse , $ _httpContext );
176
176
177
- $ mapper = $ this ->getJsonMapper ();
178
-
179
- return CamelCaseHelper::keysToCamelCase ($ mapper ->mapClass ($ response ->body , 'Pipedrive \\Models \\GetDeals ' ));
177
+ return CamelCaseHelper::keysToCamelCase ($ response ->body );
180
178
}
181
179
182
180
/**
@@ -508,9 +506,7 @@ public function getDetailsOfADeal(
508
506
//handle errors defined at the API level
509
507
$ this ->validateResponse ($ _httpResponse , $ _httpContext );
510
508
511
- $ mapper = $ this ->getJsonMapper ();
512
-
513
- return CamelCaseHelper::keysToCamelCase ($ mapper ->mapClass ($ response ->body , 'Pipedrive \\Models \\GetDeal ' ));
509
+ return CamelCaseHelper::keysToCamelCase ($ response ->body );
514
510
}
515
511
516
512
/**
You can’t perform that action at this time.
0 commit comments