serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x8b89dfbd.
buffer.writeInt32(0x8b89dfbd);
// Write fields.
buffer.writeInt32(flags);
final localBotCopy = bot;
if (localBotCopy != null) {
buffer.writeObject(localBotCopy);
}
buffer.writeObject(peer);
final localCustomDescriptionCopy = customDescription;
if (localCustomDescriptionCopy != null) {
buffer.writeString(localCustomDescriptionCopy);
}
// Finished serialization.
}