code: public function parseRequestParams($method, array $bodyParams, array $queryParams)
      {
          if ($method === 'GET') {
              $result = OperationParams::create($queryParams, true);
          } elseif ($method === 'POST') {
              if (isset($bodyParams[0])) {
                  $result = [];
                  foreach ($bodyParams as $index => $entry) {
                      $op       = OperationParams::create($entry);
                      $result[] = $op;
                  }
              } else {
                  $result = OperationParams::create($bodyParams);
              }
          } else {
              throw new RequestError('HTTP Method "' . $method . '" is not supported');
          }
  
          return $result;
      }
docs: Parses normalized request params and returns instance of OperationParams
  or array of OperationParams in case of batch operation.
  
  Returned value is a suitable input for `executeOperation` or `executeBatch` (if array)
  
  @param string  $method
  @param mixed[] $bodyParams
  @param mixed[] $queryParams
  
  @return OperationParams|OperationParams[]
  
  @throws RequestError
  
  @api