PhoneGroupCallStars.deserialize constructor
PhoneGroupCallStars.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory PhoneGroupCallStars.deserialize(BinaryReader reader) {
// Read [PhoneGroupCallStars] fields.
final totalStars = reader.readInt64();
final topDonors = reader.readVectorObject<GroupCallDonorBase>();
final chats = reader.readVectorObject<ChatBase>();
final users = reader.readVectorObject<UserBase>();
// Construct [PhoneGroupCallStars] object.
final returnValue = PhoneGroupCallStars(
totalStars: totalStars,
topDonors: topDonors.items,
chats: chats.items,
users: users.items,
);
// Now return the deserialized [PhoneGroupCallStars].
return returnValue;
}