toJson method

  1. @override
Map<String, dynamic> toJson()
override

Serializes an object

Implementation

@override
Map<String, dynamic> toJson() =>
    {'source': source.toJson(), 'target': target.toJson(), 'weight': weight};