streamJson method
Implementation
SseClient streamJson(String path, Map<String, dynamic> body, {Map<String, String>? headers}) {
if (path.startsWith("/")) {
path = path.substring(1);
}
final json = utf8.encode(jsonEncode(body));
final client = SseClient(baseUrl.resolve(path),
headers: getHeaders({"content-type": "application/json", if (headers != null) ...headers}), httpClient: httpClient, body: json);
return client;
}