serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x5f3b8a00.
buffer.writeInt32(0x5f3b8a00);
// Write fields.
buffer.writeInt32(flags);
final localBotCopy = bot;
if (localBotCopy != null) {
buffer.writeBool(localBotCopy);
}
final localPremiumCopy = premium;
if (localPremiumCopy != null) {
buffer.writeBool(localPremiumCopy);
}
// Finished serialization.
}