setRefData method

void setRefData(
  1. Map<String, VSOutputData?> inputRefs
)

Used for deserializing

Reconstructs connections

Maps inputRefs to the corresponding connection inside this node

Implementation

void setRefData(Map<String, VSOutputData?> inputRefs) {
  Map<String, VSInputData> inputMap = {
    for (final element in inputData) element.type: element
  };

  for (final ref in inputRefs.entries) {
    inputMap[ref.key]?.connectedInterface = ref.value;
  }
}