readEncodable method

Map<String, dynamic> readEncodable()

Reads the encodable representation of the object

Returns the Map<String, dynamic> representation of the encoded object

Implementation

Map<String, dynamic> readEncodable() {
  final u = readUInt8();

  if ((u & 0xF0) == 0x80) {
    return _readEncodable(u & 0xF);
  } else if (u == types.map16) {
    return _readEncodable(readUInt16());
  } else if (u == types.map32) {
    return _readEncodable(readUInt32());
  }

  throw MsgPackUnsupportedTypeError(u);
}