import { randomUUID } from "node:crypto"; import { BaseNode } from "./BaseNode"; export type TVisualRemapNode = Pick; export class VisualRemapNode extends BaseNode { id: string | null = randomUUID(); displayName: string | null = 'LOC_'; kind: string | null = 'UNIT'; from: string | null = 'UNIT_'; to: string | null = 'UNIT_'; constructor(payload: Partial = {}) { super(); this.fill(payload); } toXmlElement() { return { Row: { ID: this.id, DisplayName: this.displayName, Kind: this.kind, From: this.from, To: this.to } } } }