JsonUtf8 extension

Conversion between JSON and UTF-8.

on

Static Properties

decoder → Converter<List<int>, Object?>

Available on Object, provided by the JsonUtf8 extension

A JSON decoder that decodes from UTF-8.
final
encoder → JsonUtf8Encoder

Available on Object, provided by the JsonUtf8 extension

A JSON encoder that encodes to UTF-8.
final

Static Methods

decode(List<int> bytes) → Object?

Available on Object, provided by the JsonUtf8 extension

Decodes a UTF-8 buffer to a JSON object.
decodeAny(Object? body) → Map<String, Object?>

Available on Object, provided by the JsonUtf8 extension

Decodes a JSON body of type List<int> or String.
encode(Object? object) → Uint8List

Available on Object, provided by the JsonUtf8 extension

Encodes a JSON object to a UTF-8 buffer.