PaymentsGetStarsSubscriptions.deserialize constructor
PaymentsGetStarsSubscriptions.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory PaymentsGetStarsSubscriptions.deserialize(BinaryReader reader) {
// Read [PaymentsGetStarsSubscriptions] fields.
final flags = reader.readInt32();
final missingBalance = (flags & 1) != 0;
final peer = reader.readObject() as InputPeerBase;
final offset = reader.readString();
// Construct [PaymentsGetStarsSubscriptions] object.
final returnValue = PaymentsGetStarsSubscriptions(
missingBalance: missingBalance,
peer: peer,
offset: offset,
);
// Now return the deserialized [PaymentsGetStarsSubscriptions].
return returnValue;
}