toJson method
The authored plane, complete: parameters, nodes, and what each bound property reads. Never the fx plane, which belongs to its writers.
Implementation
Map<String, Object?> toJson() => {
'params': [
for (var p in params)
{
'name': p.name,
'kind': p.kind.name,
'default': _valueToJson(p.defaultValue),
},
],
'root': _nodeToJson(root),
};