toJson method

Map<String, dynamic> toJson()

Returns this object in JSON format.

Implementation

Map<String, dynamic> toJson() =>
    {'id': id, 'label': label, 'nodes': nodes, 'subgraphs': subgraphs};