decoder method

  1. @override
BytesReader decoder(
  1. Uint8List bytes, {
  2. dynamic fromEncodable(
    1. Map<String, dynamic>
    )?,
})
override

Returns a BytesReader implementation that will handle the deserialization

  • bytes: The bytes to deserialize
  • fromEncodable: An optional function to convert a json map into a object

Implementation

@override
BytesReader decoder(Uint8List bytes,
    {dynamic Function(Map<String, dynamic>)? fromEncodable}) {
  return MsgPackReader(bytes,
      fromEncodable: fromEncodable, extensions: _extensions);
}