serialize method
dynamic
serialize()
Implementation
serialize() {
List res = [_type.value];
if (_term != null) {
res.add(_term!.build());
}
if (_globalOptargs != null) {
Map optargs = {};
_globalOptargs!.forEach((k, v) {
optargs[k] = v is RqlQuery ? v.build() : v;
});
res.add(optargs);
}
return json.encode(res);
}