serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0xcbb7a507.
buffer.writeInt32(0xcbb7a507);
// Write fields.
buffer.writeInt32(flags);
buffer.writeInt64(id);
buffer.writeString(about);
buffer.writeObject(chatPhoto);
buffer.writeVectorObject(linkedPeers);
final localAdminsCountCopy = adminsCount;
if (localAdminsCountCopy != null) {
buffer.writeInt32(localAdminsCountCopy);
}
final localKickedCountCopy = kickedCount;
if (localKickedCountCopy != null) {
buffer.writeInt32(localKickedCountCopy);
}
final localPeerLinkRequestsPendingCopy = peerLinkRequestsPending;
if (localPeerLinkRequestsPendingCopy != null) {
buffer.writeInt32(localPeerLinkRequestsPendingCopy);
}
// Finished serialization.
}