toJson abstract method

Map<String, dynamic> toJson()

Converts this edge to a JSON representation.

The returned map must include at least 'from', 'to', and 'weight' keys.

Implementation

Map<String, dynamic> toJson();