OptionalcommandThe id of the command that will be invoked when the menu is clicked. If the command is not registered first through the CommandRegistrationApi, an error will occur when the menu gets clicked.
OptionalenabledIf not provided, the menu is enabled by default. Its enabled state can be updated with the 'update' call.
OptionalhasIf true, a separator will be placed under this menu in the UI.
OptionalhasIf true, a separator will be placed above this menu in the UI.
This ID should be unique and not empty. When the menu gets clicked, the message 'menuItemActivated' with this menuId as data is sent back to the extension.
OptionalsubThe children menus of this menu. They can also be parents of other menus.
The display text of the menu.