serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0xc9d31138.
buffer.writeInt32(0xc9d31138);
// Write fields.
buffer.writeInt32(flags);
buffer.writeInt64(id);
buffer.writeString(about);
buffer.writeObject(participants);
final localChatPhotoCopy = chatPhoto;
if (localChatPhotoCopy != null) {
buffer.writeObject(localChatPhotoCopy);
}
buffer.writeObject(notifySettings);
final localExportedInviteCopy = exportedInvite;
if (localExportedInviteCopy != null) {
buffer.writeObject(localExportedInviteCopy);
}
final localBotInfoCopy = botInfo;
if (localBotInfoCopy != null) {
buffer.writeVectorObject(localBotInfoCopy);
}
final localPinnedMsgIdCopy = pinnedMsgId;
if (localPinnedMsgIdCopy != null) {
buffer.writeInt32(localPinnedMsgIdCopy);
}
final localFolderIdCopy = folderId;
if (localFolderIdCopy != null) {
buffer.writeInt32(localFolderIdCopy);
}
final localCallCopy = call;
if (localCallCopy != null) {
buffer.writeObject(localCallCopy);
}
final localTtlPeriodCopy = ttlPeriod;
if (localTtlPeriodCopy != null) {
buffer.writeInt32(localTtlPeriodCopy);
}
final localGroupcallDefaultJoinAsCopy = groupcallDefaultJoinAs;
if (localGroupcallDefaultJoinAsCopy != null) {
buffer.writeObject(localGroupcallDefaultJoinAsCopy);
}
final localThemeEmoticonCopy = themeEmoticon;
if (localThemeEmoticonCopy != null) {
buffer.writeString(localThemeEmoticonCopy);
}
final localRequestsPendingCopy = requestsPending;
if (localRequestsPendingCopy != null) {
buffer.writeInt32(localRequestsPendingCopy);
}
final localRecentRequestersCopy = recentRequesters;
if (localRecentRequestersCopy != null) {
buffer.writeVectorInt64(localRecentRequestersCopy);
}
final localAvailableReactionsCopy = availableReactions;
if (localAvailableReactionsCopy != null) {
buffer.writeObject(localAvailableReactionsCopy);
}
// Finished serialization.
}