public static function assertResource(
        $document,
        string $type,
        string $id,
        string $pointer = '/data',
        string $message = ''
    ): void
    {
        self::assertHash($document, compact('type', 'id'), $pointer, true, $message);
    }
public static function assertResource(
        $document,
        string $type,
        string $id,
        string $pointer = '/data',
        string $message = ''
    ): void
    {
        self::assertHash($document, compact('type', 'id'), $pointer, true, $message);
    }
public static function assertResource ( $ document , string $ type , string $ id , string $ pointer = '/data' , string $ message = '' ) : void { self :: assertHash ( $ document , compact ( 'type' , 'id' ) , $ pointer , true , $ message ) ; }
Assert that the value at the pointer has the expected JSON API resource.

@param array|string $document
the JSON API document.
@param string $type
the expected resource object type.
@param string $id
the expected resource object id.
@param string $pointer
the JSON pointer to where the resource object is expected in the document.
@param string $message
Assert that the value at the pointer has the expected JSON API resource .