decoder abstract method

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

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

BytesReader decoder(Uint8List bytes,
    {dynamic Function(Map<String, dynamic>)? fromEncodable});