[ $this->mergeWhen($this->type !== null, function () { return [ 'type' => $this->type->uuid, ]; }), ], ]; } }