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