ChannelsChannelParticipant.deserialize constructor

ChannelsChannelParticipant.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelsChannelParticipant.deserialize(BinaryReader reader) {
  // Read [ChannelsChannelParticipant] fields.
  final participant = reader.readObject() as ChannelParticipantBase;
  final chats = reader.readVectorObject<ChatBase>();
  final users = reader.readVectorObject<UserBase>();

  // Construct [ChannelsChannelParticipant] object.
  final returnValue = ChannelsChannelParticipant(
    participant: participant,
    chats: chats,
    users: users,
  );

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