serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x71e4ea58.
buffer.writeInt32(0x71e4ea58);
// Write fields.
buffer.writeInt32(flags);
final localMessagesNotifyFromCopy = messagesNotifyFrom;
if (localMessagesNotifyFromCopy != null) {
buffer.writeObject(localMessagesNotifyFromCopy);
}
final localStoriesNotifyFromCopy = storiesNotifyFrom;
if (localStoriesNotifyFromCopy != null) {
buffer.writeObject(localStoriesNotifyFromCopy);
}
final localPollVotesNotifyFromCopy = pollVotesNotifyFrom;
if (localPollVotesNotifyFromCopy != null) {
buffer.writeObject(localPollVotesNotifyFromCopy);
}
buffer.writeObject(sound);
buffer.writeBool(showPreviews);
// Finished serialization.
}