code: function MenuItem (options) {
    options = _.assign ({name: null, title:null, link:null, roles:null}, options);
    options.name = options.name || (options.link ? options.link.replace('/','_') : undefined) || options.title;
    this.name = options.name;
    this.title = options.title;
    this.link = options.link;
    this.roles = options.roles;
    this.icon = options.icon;
    this.weight = options.weight;
    this.submenus = options.submenus || [];
  }
docs: MenuItem class