jsonDocument top-level property Null safety

StreamChannelTransformer<Object?, String> jsonDocument
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();