MessagesSendEncryptedFile.deserialize constructor
MessagesSendEncryptedFile.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory MessagesSendEncryptedFile.deserialize(BinaryReader reader) {
// Read [MessagesSendEncryptedFile] fields.
final flags = reader.readInt32();
final silent = (flags & 1) != 0;
final peer = reader.readObject() as InputEncryptedChatBase;
final randomId = reader.readInt64();
final data = reader.readBytes();
final file = reader.readObject() as InputEncryptedFileBase;
// Construct [MessagesSendEncryptedFile] object.
final returnValue = MessagesSendEncryptedFile(
silent: silent,
peer: peer,
randomId: randomId,
data: data,
file: file,
);
// Now return the deserialized [MessagesSendEncryptedFile].
return returnValue;
}