serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x94ce852a.
buffer.writeInt32(0x94ce852a);
// Write fields.
buffer.writeInt32(flags);
buffer.writeInt64(stars);
buffer.writeInt32(yearlyBoosts);
final localStoreProductCopy = storeProduct;
if (localStoreProductCopy != null) {
buffer.writeString(localStoreProductCopy);
}
buffer.writeString(currency);
buffer.writeInt64(amount);
buffer.writeVectorObject(winners);
// Finished serialization.
}