convert static method

Stream<List<int>> convert(
  1. Object? value
)

Converts a single value to a json stream.

Implementation

static Stream<List<int>> convert(Object? value) {
  final writer = JsonStreamWriter();
  writer.write(value).then((_) => writer.close());
  return writer.stream;
}