UpdateChatParticipantRank.deserialize constructor
UpdateChatParticipantRank.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory UpdateChatParticipantRank.deserialize(BinaryReader reader) {
// Read [UpdateChatParticipantRank] fields.
final chatId = reader.readInt64();
final userId = reader.readInt64();
final rank = reader.readString();
final version = reader.readInt32();
// Construct [UpdateChatParticipantRank] object.
final returnValue = UpdateChatParticipantRank(
chatId: chatId,
userId: userId,
rank: rank,
version: version,
);
// Now return the deserialized [UpdateChatParticipantRank].
return returnValue;
}