encoder method
Returns a BytesWriter implementation that will handle the serialization
toEncodable
: An optional function to convert an object into a json map
Implementation
@override
BytesWriter encoder({Map<String, dynamic> Function(dynamic)? toEncodable}) {
return MsgPackWriter(toEncodable: toEncodable, extensions: _extensions);
}