toolValueToJson method
Serialize a ToolValue to its canonical JSON string. Recursive walk
lives in commons (rac_tool_value_to_json_proto); Dart only marshals
bytes.
Implementation
String toolValueToJson(ToolValue value) {
final fn = RacNative.bindings.rac_tool_value_to_json_proto;
final wrapper = DartBridgeProtoUtils.callRequest<ToolValueJSON>(
request: value,
invoke: fn,
decode: ToolValueJSON.fromBuffer,
symbol: 'rac_tool_value_to_json_proto',
);
return wrapper.json;
}