GroupCallDonor.deserialize constructor
GroupCallDonor.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory GroupCallDonor.deserialize(BinaryReader reader) {
// Read [GroupCallDonor] fields.
final flags = reader.readInt32();
final top = (flags & 1) != 0;
final my = (flags & 2) != 0;
final hasPeerIdField = (flags & 8) != 0;
final peerId = hasPeerIdField ? reader.readObject() as PeerBase : null;
final stars = reader.readInt64();
// Construct [GroupCallDonor] object.
final returnValue = GroupCallDonor(
top: top,
my: my,
peerId: peerId,
stars: stars,
);
// Now return the deserialized [GroupCallDonor].
return returnValue;
}