serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x96537bd7.
buffer.writeInt32(0x96537bd7);
// Write fields.
buffer.writeInt32(flags);
buffer.writeInt32(id);
buffer.writeObject(title);
final localEmoticonCopy = emoticon;
if (localEmoticonCopy != null) {
buffer.writeString(localEmoticonCopy);
}
final localColorCopy = color;
if (localColorCopy != null) {
buffer.writeInt32(localColorCopy);
}
buffer.writeVectorObject(pinnedPeers);
buffer.writeVectorObject(includePeers);
// Finished serialization.
}