EncryptedMessageService.deserialize constructor
EncryptedMessageService.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory EncryptedMessageService.deserialize(BinaryReader reader) {
// Read [EncryptedMessageService] fields.
final randomId = reader.readInt64();
final chatId = reader.readInt32();
final date = reader.readDateTime();
final bytes = reader.readBytes();
// Construct [EncryptedMessageService] object.
final returnValue = EncryptedMessageService(
randomId: randomId,
chatId: chatId,
date: date,
bytes: bytes,
);
// Now return the deserialized [EncryptedMessageService].
return returnValue;
}