original_string: protected function respond()
      {
          $response = [];
  
          if (!empty($this->meta)) {
              $response['meta'] = $this->meta;
          }
  
          $response['data'] = $this->data;
  
          if ($this->data instanceof Arrayable) {
              $response['data'] = $this->data->toArray();
          }
  
          return Response::json($response, $this->statusCode, $this->headers);
      }
code: protected function respond()
      {
          $response = [];
  
          if (!empty($this->meta)) {
              $response['meta'] = $this->meta;
          }
  
          $response['data'] = $this->data;
  
          if ($this->data instanceof Arrayable) {
              $response['data'] = $this->data->toArray();
          }
  
          return Response::json($response, $this->statusCode, $this->headers);
      }
code_tokens: protected function respond ( ) { $ response = [ ] ; if ( ! empty ( $ this -> meta ) ) { $ response [ 'meta' ] = $ this -> meta ; } $ response [ 'data' ] = $ this -> data ; if ( $ this -> data instanceof Arrayable ) { $ response [ 'data' ] = $ this -> data -> toArray ( ) ; } return Response :: json ( $ response , $ this -> statusCode , $ this -> headers ) ; }
docstring: Build the response.
  
  @return \Illuminate\Http\Response
docstring_tokens: Build the response .