toJson method

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

The message payload (the envelope d field), without the type or channel.

Implementation

@override
Map<String, dynamic> toJson() => {
  'nodes': nodes.map((n) => n.toJson()).toList(),
};