ChatlistsJoinChatlistUpdates.deserialize constructor

ChatlistsJoinChatlistUpdates.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChatlistsJoinChatlistUpdates.deserialize(BinaryReader reader) {
  // Read [ChatlistsJoinChatlistUpdates] fields.
  final chatlist = reader.readObject() as InputChatlistBase;
  final peers = reader.readVectorObject<InputPeerBase>();

  // Construct [ChatlistsJoinChatlistUpdates] object.
  final returnValue = ChatlistsJoinChatlistUpdates(
    chatlist: chatlist,
    peers: peers,
  );

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