wt doesn't // use tokens anymore. That was circa 2012 serializer code. parent::__construct( $dataParsoid, $dataMw ); $this->value = $value; } /** * @inheritDoc */ public function jsonSerialize(): array { return [ 'type' => $this->getType(), 'value' => $this->value, 'dataParsoid' => $this->dataParsoid, 'dataMw' => $this->dataMw, ]; } }