encoder abstract method
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});