original_string: public function toArray()
      {
          $json            = [];
          $json['jsonrpc'] = $this->jsonrpc;
  
          if ($this->method) {
              $json['method'] = $this->method;
          }
  
          $json['method'] = $this->method;
  
          if ($this->params) {
              $json['params'] = $this->params;
          }
  
          if ($this->id) {
              $json['id'] = $this->id;
          }
  
          return $json;
      }
code: public function toArray()
      {
          $json            = [];
          $json['jsonrpc'] = $this->jsonrpc;
  
          if ($this->method) {
              $json['method'] = $this->method;
          }
  
          $json['method'] = $this->method;
  
          if ($this->params) {
              $json['params'] = $this->params;
          }
  
          if ($this->id) {
              $json['id'] = $this->id;
          }
  
          return $json;
      }
code_tokens: public function toArray ( ) { $ json = [ ] ; $ json [ 'jsonrpc' ] = $ this -> jsonrpc ; if ( $ this -> method ) { $ json [ 'method' ] = $ this -> method ; } $ json [ 'method' ] = $ this -> method ; if ( $ this -> params ) { $ json [ 'params' ] = $ this -> params ; } if ( $ this -> id ) { $ json [ 'id' ] = $ this -> id ; } return $ json ; }
docstring: Convert JsonRequest to json string.
  
  @return array
docstring_tokens: Convert JsonRequest to json string .