EncryptedChatWaiting.deserialize constructor

EncryptedChatWaiting.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory EncryptedChatWaiting.deserialize(BinaryReader reader) {
  // Read [EncryptedChatWaiting] fields.
  final id = reader.readInt32();
  final accessHash = reader.readInt64();
  final date = reader.readDateTime();
  final adminId = reader.readInt64();
  final participantId = reader.readInt64();

  // Construct [EncryptedChatWaiting] object.
  final returnValue = EncryptedChatWaiting(
    id: id,
    accessHash: accessHash,
    date: date,
    adminId: adminId,
    participantId: participantId,
  );

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