MessagesAcceptEncryption.deserialize constructor

MessagesAcceptEncryption.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesAcceptEncryption.deserialize(BinaryReader reader) {
  // Read [MessagesAcceptEncryption] fields.
  final peer = reader.readObject() as InputEncryptedChatBase;
  final gB = reader.readBytes();
  final keyFingerprint = reader.readInt64();

  // Construct [MessagesAcceptEncryption] object.
  final returnValue = MessagesAcceptEncryption(
    peer: peer,
    gB: gB,
    keyFingerprint: keyFingerprint,
  );

  // Now return the deserialized [MessagesAcceptEncryption].
  return returnValue;
}