MsgPackWriter constructor
MsgPackWriter({
- Map<
String, dynamic> toEncodable(- dynamic
- List<
MsgPackExtension> ? extensions,
Builds a MsgPackWriter serializer.
toEncodable
: A custom function the converts the object to aMap<String, dynamic>
representationextensions
: A optional list of extensions to use
Implementation
MsgPackWriter(
{Map<String, dynamic> Function(dynamic)? toEncodable,
List<MsgPackExtension>? extensions})
: _toEncodable = toEncodable ?? _defaultToEncodable,
_extensions = [const DateTimeExtension(), ...?extensions];