public function getDocument(): Document
    {
        if (!$this->document) {
            $this->document = HttpAssert::assertContent(
                $this->getContentType(),
                $this->getContent()
            );
        }

        return $this->document;
    }
public function getDocument(): Document
    {
        if (!$this->document) {
            $this->document = HttpAssert::assertContent(
                $this->getContentType(),
                $this->getContent()
            );
        }

        return $this->document;
    }
public function getDocument ( ) : Document { if ( ! $ this -> document ) { $ this -> document = HttpAssert :: assertContent ( $ this -> getContentType ( ) , $ this -> getContent ( ) ) ; } return $ this -> document ; }
Get the JSON API document.

@return Document
Get the JSON API document .