public function toResponse($status = 200, array $headers = [], $options = 0)
    {
        return new JsonResponse($this->transform(), $status, $headers, $options);
    }
public function toResponse($status = 200, array $headers = [], $options = 0)
    {
        return new JsonResponse($this->transform(), $status, $headers, $options);
    }
public function toResponse ( $ status = 200 , array $ headers = [ ] , $ options = 0 ) { return new JsonResponse ( $ this -> transform ( ) , $ status , $ headers , $ options ) ; }
Get the instance as a json response object.

@param  int    $status
@param  array  $headers
@param  int    $options

@return \Illuminate\Http\JsonResponse
Get the instance as a json response object .