toJson method
Encodes this value as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'outcome': outcome,
'source': source.toJson(),
'treeRevision': treeRevision,
'rootNodeId': rootNodeId,
'truncated': truncated,
'nodeCount': nodeCount,
'nodes': nodes.map((item) => item.toJson()).toList(growable: false),
};