ChatParticipants.deserialize constructor
ChatParticipants.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ChatParticipants.deserialize(BinaryReader reader) {
// Read [ChatParticipants] fields.
final chatId = reader.readInt64();
final participants = reader.readVectorObject<ChatParticipantBase>();
final version = reader.readInt32();
// Construct [ChatParticipants] object.
final returnValue = ChatParticipants(
chatId: chatId,
participants: participants,
version: version,
);
// Now return the deserialized [ChatParticipants].
return returnValue;
}