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