serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0xf2c4f24d.
buffer.writeInt32(0xf2c4f24d);
// Write fields.
buffer.writeInt32(flags);
final localHashtagCopy = hashtag;
if (localHashtagCopy != null) {
buffer.writeString(localHashtagCopy);
}
final localQueryCopy = query;
if (localQueryCopy != null) {
buffer.writeString(localQueryCopy);
}
buffer.writeInt32(offsetRate);
buffer.writeObject(offsetPeer);
buffer.writeInt32(offsetId);
buffer.writeInt32(limit);
final localAllowPaidStarsCopy = allowPaidStars;
if (localAllowPaidStarsCopy != null) {
buffer.writeInt64(localAllowPaidStarsCopy);
}
// Finished serialization.
}