serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x40f48462.
buffer.writeInt32(0x40f48462);
// Write fields.
buffer.writeInt32(flags);
buffer.writeInt64(hash);
final localEncryptedRequestsDisabledCopy = encryptedRequestsDisabled;
if (localEncryptedRequestsDisabledCopy != null) {
buffer.writeBool(localEncryptedRequestsDisabledCopy);
}
final localCallRequestsDisabledCopy = callRequestsDisabled;
if (localCallRequestsDisabledCopy != null) {
buffer.writeBool(localCallRequestsDisabledCopy);
}
// Finished serialization.
}