Converts the object to bytes using Borsh serialization.
@override List<int> toBytes() { return [...super.toBytes(), ...data]; }