InputEncryptedChat.deserialize constructor

InputEncryptedChat.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory InputEncryptedChat.deserialize(BinaryReader reader) {
  // Read [InputEncryptedChat] fields.
  final chatId = reader.readInt32();
  final accessHash = reader.readInt64();

  // Construct [InputEncryptedChat] object.
  final returnValue = InputEncryptedChat(
    chatId: chatId,
    accessHash: accessHash,
  );

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