code: public function document($request): ?\stdClass
      {
          if ($this->cannotDecodeJsonApi()) {
              return null;
          }
  
          return $this->decoding->getJsonApiDecoder()->document($request);
      }
docs: Decode a JSON API document from the request content.
  
  @param $request
  @return \stdClass|null