encode method

Uint8List encode()

Implementation

Uint8List encode() {
  var serializer = Serializer.defaultSerializer();
  serializer.reset();
  serializer.writeHeader();
  serializer.writeValue(this);
  return serializer.chunk;
}