ChannelsChannelParticipant.deserialize constructor
ChannelsChannelParticipant.deserialize(
- 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;
}