data = is_string($value) ? new Token($value) : $value; } #[Override] public function jsonSerialize(): mixed { return $this->data; } }