// getTypeKey return the correct JSON key for the specific type, ie type,ref,or enumRef func (gen *testGenerator) getTypeKey(t *idl.Type) string { var s string if t.IsEnum(gen.tplRootIdl) { s = "enumRef" } else if t.IsStruct(gen.tplRootIdl) { s = "ref" } else { s = "type" } return s }