serialize method

  1. @override
void serialize(
  1. List<int> buffer
)
override

Serialize.

Implementation

@override
void serialize(List<int> buffer) {
  // Write type-id 0x5f2d1df2.
  buffer.writeInt32(0x5f2d1df2);

  // Write fields.
  buffer.writeInt32(flags);
  final localTransactionCopy = transaction;
  if (localTransactionCopy != null) {
    buffer.writeString(localTransactionCopy);
  }
  buffer.writeInt32(months);
  buffer.writeString(currency);
  buffer.writeInt64(amount);
  buffer.writeString(botUrl);
  final localStoreProductCopy = storeProduct;
  if (localStoreProductCopy != null) {
    buffer.writeString(localStoreProductCopy);
  }

  // Finished serialization.
}