MessagesGetCommonChats.deserialize constructor

MessagesGetCommonChats.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesGetCommonChats.deserialize(BinaryReader reader) {
  // Read [MessagesGetCommonChats] fields.
  final userId = reader.readObject() as InputUserBase;
  final maxId = reader.readInt64();
  final limit = reader.readInt32();

  // Construct [MessagesGetCommonChats] object.
  final returnValue = MessagesGetCommonChats(
    userId: userId,
    maxId: maxId,
    limit: limit,
  );

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