EncryptedChatRequested.deserialize constructor
EncryptedChatRequested.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory EncryptedChatRequested.deserialize(BinaryReader reader) {
// Read [EncryptedChatRequested] fields.
final flags = reader.readInt32();
final hasFolderIdField = (flags & 1) != 0;
final folderId = hasFolderIdField ? reader.readInt32() : null;
final id = reader.readInt32();
final accessHash = reader.readInt64();
final date = reader.readDateTime();
final adminId = reader.readInt64();
final participantId = reader.readInt64();
final gA = reader.readBytes();
// Construct [EncryptedChatRequested] object.
final returnValue = EncryptedChatRequested(
folderId: folderId,
id: id,
accessHash: accessHash,
date: date,
adminId: adminId,
participantId: participantId,
gA: gA,
);
// Now return the deserialized [EncryptedChatRequested].
return returnValue;
}