serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x1ea2fda7.
buffer.writeInt32(0x1ea2fda7);
// Write fields.
buffer.writeInt32(flags);
buffer.writeInt64(queryId);
buffer.writeInt64(userId);
buffer.writeString(connectionId);
buffer.writeObject(message);
final localReplyToMessageCopy = replyToMessage;
if (localReplyToMessageCopy != null) {
buffer.writeObject(localReplyToMessageCopy);
}
buffer.writeInt64(chatInstance);
final localDataCopy = data;
if (localDataCopy != null) {
buffer.writeBytes(localDataCopy);
}
// Finished serialization.
}