src/Model/Notification.php
public function withPayload(Payload $payload): Notification
    {
        $cloned = clone $this;

        $cloned->payload = $payload;

        return $cloned;
    }
public function withPayload(Payload $payload): Notification
    {
        $cloned = clone $this;

        $cloned->payload = $payload;

        return $cloned;
    }
Set payload

@param Payload $payload

@return Notification