The DojoTreeNode record creates the elements that compose a tree.
children = [ new DojoTreeNode { id = node_id, text = node_text }, new DojoTreeNode { id = node_id, text = node_name } ]