convert library
Functions
-
readAsJson(
Stream< List< stream, {Encoding encoding = utf8, int? maxLength}) → Futureint> > - Reads the entire stream as a JSON string using the given Encoding, and then convert to an object.
-
readAsString(
Stream< List< stream, {Encoding encoding = utf8, int? maxLength}) → Future<int> >String> - Reads the entire stream as a string using the given Encoding.
Exceptions / Errors
- PayloadException
-
Exceptions thrown by
encodeAsString
andencodeAsJson
to indicate if the input stream is larger than allowed.