toJson method

Map<String, dynamic> toJson()

This function converts an object's properties into a map with string keys and dynamic values.

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'fromNodeId': fromNodeId,
      'fromPortId': fromPortId,
      'toNodeId': toNodeId,
      'toPortId': toPortId,
    };