encoder abstract method

BytesWriter encoder({
  1. Map<String, dynamic> toEncodable(
    1. dynamic
    )?,
})

Returns a BytesWriter implementation that will handle the serialization

  • toEncodable: An optional function to convert an object into a json map

Implementation

BytesWriter encoder({Map<String, dynamic> Function(dynamic)? toEncodable});