Also, you could set Model.nodeCategoryProperty to “groupType”, so that the data that you quoted above would work without any change.
But note that if you do so, any “groupType” property on regular node data will choose the same named template from Diagram.nodeTemplateMap.
In either case if the named template is not found, it will default to using the empty string as the name – i.e. Diagram.groupTemplate or Diagram.nodeTemplate.