public function serialize()
    {
        return serialize([
            'route' => $this->route,
            'depth' => $this->depth,
            'apps' => $this->apps,
            'children' => $this->children
        ]);
    }