encoder method

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

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);
}