jsonDocument top-level property
final
A StreamChannelTransformer that transforms JSON documentsâstrings that contain individual objects encoded as JSONâinto decoded Dart objects.
This decodes JSON that's emitted by the transformed channel's stream, and encodes objects so that JSON is passed to the transformed channel's sink.
If the transformed channel emits invalid JSON, this emits a FormatException. If an unencodable object is added to the sink, it synchronously throws a JsonUnsupportedObjectError.
Implementation
final StreamChannelTransformer<Object?, String> jsonDocument =
const _JsonDocument();