func (filler *viewModelFiller) SectionSelection(node *viewmodel.SectionSelectionNode) { filler.ValueSelection(node.Selection()) filler.object.Set("type", "sectionSelection") filler.object.Set("label", node.Label()) nodeSections := node.Sections() objSections := js.Global.Get("Object").New() for key, section := range nodeSections { sectionFiller := newViewModelFiller() section.Specialize(sectionFiller) objSections.Set(key, sectionFiller.object) } filler.object.Set("sections", objSections) }