Connection class

The Connection class represents a connection between nodes with specific IDs and port IDs, and provides methods for JSON serialization and deserialization.

Constructors

Connection({required int fromNodeId, required int fromPortId, required int toNodeId, required int toPortId, required int id})
Connection.fromJson(Map<String, dynamic> json)
This Dart factory method creates a Connection object from a JSON map.
factory

Properties

fromNodeId int
final
fromPortId int
final
hashCode int
The hash code for this object.
no setterinherited
id int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toNodeId int
final
toPortId int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
This function converts an object's properties into a map with string keys and dynamic values.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited