code: func (i *MenuItem) toEvent() (e *EventMenuItem) {
  	e = &EventMenuItem{
  		ID:      i.id,
  		Options: i.o,
  		RootID:  i.rootID,
  	}
  	if i.s != nil {
  		e.SubMenu = i.s.toEvent()
  	}
  	return
  }
docs: // toEvent returns the menu item in the proper event format