see NavTreeComponent export class ObNavTreeItemModel { id : string ; label : string ; labelParams ? : { [ key ] : string | number ; } ; items ? : ObNavTreeItemModel [ ] ; path ? : string ; fragment ? : string ; queryParams ? : any ; disabled ? = false ; collapsed ? = false ; parent ? : ObNavTreeItemModel ; routes : any [ ] = [ ] ; constructor ( json , parent ? ) { Object . assign ( this , json ) ; if ( parent ) { this . parent = parent ; this . routes = [ ... this . parent . routes ] ; } this . path = this . path || this . id ; this . routes . push ( this . path ) ; if ( Array . isArray ( json . items ) ) { this . items = json . items . map ( item => new ObNavTreeItemModel ( item , this ) ) ; } } }