convert library

Functions

readAsJson(Stream<List<int>> stream, {Encoding encoding = utf8, int? maxLength}) Future
Reads the entire stream as a JSON string using the given Encoding, and then convert to an object.
readAsString(Stream<List<int>> stream, {Encoding encoding = utf8, int? maxLength}) Future<String>
Reads the entire stream as a string using the given Encoding.

Exceptions / Errors

PayloadException
Exceptions thrown by encodeAsString and encodeAsJson to indicate if the input stream is larger than allowed.