ChatlistsJoinChatlistInvite.deserialize constructor

ChatlistsJoinChatlistInvite.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChatlistsJoinChatlistInvite.deserialize(BinaryReader reader) {
  // Read [ChatlistsJoinChatlistInvite] fields.
  final slug = reader.readString();
  final peers = reader.readVectorObject<InputPeerBase>();

  // Construct [ChatlistsJoinChatlistInvite] object.
  final returnValue = ChatlistsJoinChatlistInvite(
    slug: slug,
    peers: peers.items,
  );

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