UpdateEncryption.deserialize constructor
UpdateEncryption.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory UpdateEncryption.deserialize(BinaryReader reader) {
// Read [UpdateEncryption] fields.
final chat = reader.readObject() as EncryptedChatBase;
final date = reader.readDateTime();
// Construct [UpdateEncryption] object.
final returnValue = UpdateEncryption(
chat: chat,
date: date,
);
// Now return the deserialized [UpdateEncryption].
return returnValue;
}