serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0xd087663a.
buffer.writeInt32(0xd087663a);
// Write fields.
buffer.writeInt32(flags);
buffer.writeInt64(chatId);
buffer.writeDateTime(date);
buffer.writeInt64(actorId);
buffer.writeInt64(userId);
final localPrevParticipantCopy = prevParticipant;
if (localPrevParticipantCopy != null) {
buffer.writeObject(localPrevParticipantCopy);
}
final localNewParticipantCopy = newParticipant;
if (localNewParticipantCopy != null) {
buffer.writeObject(localNewParticipantCopy);
}
final localInviteCopy = invite;
if (localInviteCopy != null) {
buffer.writeObject(localInviteCopy);
}
buffer.writeInt32(qts);
// Finished serialization.
}