ChannelsChannelParticipants.deserialize constructor

ChannelsChannelParticipants.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelsChannelParticipants.deserialize(BinaryReader reader) {
  // Read [ChannelsChannelParticipants] fields.
  final count = reader.readInt32();
  final participants = reader.readVectorObject<ChannelParticipantBase>();
  final chats = reader.readVectorObject<ChatBase>();
  final users = reader.readVectorObject<UserBase>();

  // Construct [ChannelsChannelParticipants] object.
  final returnValue = ChannelsChannelParticipants(
    count: count,
    participants: participants,
    chats: chats,
    users: users,
  );

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