decodeJson static method
Decodes a single JSON into a simple object, from the given bytes
.
Implementation
static Object? decodeJson(Uint8List bytes) {
ByteBuffer buffer = bytes.buffer;
Uint8List info = Uint8List.view(buffer);
var utf8Decoder = const Utf8Decoder();
String json = utf8Decoder.convert(info);
var jsonDecoder = const JsonDecoder();
return jsonDecoder.convert(json);
}