serialize function

Uint8List serialize(
  1. dynamic value, {
  2. ExtEncoder? extEncoder,
})

Implementation

Uint8List serialize(
  dynamic value, {
  ExtEncoder? extEncoder,
}) {
  final s = Serializer(extEncoder: extEncoder);
  s.encode(value);
  return s.takeBytes();
}