toJson method

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

Serializes an object

Implementation

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