toNode method
override
Encode this selector as an IPLDNode using the official compact DAG-CBOR/DAG-JSON selector schema.
Implementation
@override
IPLDNode toNode() {
final body = <String, IPLDNode>{
':>': sequence.toNode(),
'l': limit.toNode(),
};
if (stopAt != null) {
body['!'] = stopAt!.toNode();
}
return _singleKeyMap('R', _mapNode(body));
}