bcsToBytes<T extends Serializable> function

Uint8List bcsToBytes<T extends Serializable>(
  1. T value
)

Implementation

Uint8List bcsToBytes<T extends Serializable>(T value) {
  final serializer = Serializer();
  value.serialize(serializer);
  return serializer.getBytes();
}