serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x985d3abb.
buffer.writeInt32(0x985d3abb);
// Write fields.
buffer.writeInt32(flags);
buffer.writeInt64(channelId);
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.
}