function generateTarget (node) {
            const isSubFlow = node._flow.TYPE === 'subflow'
            return {
                id: node.id,
                name: node.name || node.id,
                flowId: node._flow.flow.id,
                flowName: isSubFlow ? node._flow.subflowDef.name : node._flow.flow.label,
                isSubFlow: isSubFlow
            }
        }
Generate a target object from a node
@param {LinkInNode} node
@returns {LinkTarget} a link target object