serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0xc83d6aec.
buffer.writeInt32(0xc83d6aec);
// Write fields.
buffer.writeInt32(flags);
buffer.writeString(currency);
buffer.writeInt64(amount);
buffer.writeInt32(months);
final localCryptoCurrencyCopy = cryptoCurrency;
if (localCryptoCurrencyCopy != null) {
buffer.writeString(localCryptoCurrencyCopy);
}
final localCryptoAmountCopy = cryptoAmount;
if (localCryptoAmountCopy != null) {
buffer.writeInt64(localCryptoAmountCopy);
}
// Finished serialization.
}