InputStorePaymentStarsGift.deserialize constructor
InputStorePaymentStarsGift.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory InputStorePaymentStarsGift.deserialize(BinaryReader reader) {
// Read [InputStorePaymentStarsGift] fields.
final userId = reader.readObject() as InputUserBase;
final stars = reader.readInt64();
final currency = reader.readString();
final amount = reader.readInt64();
// Construct [InputStorePaymentStarsGift] object.
final returnValue = InputStorePaymentStarsGift(
userId: userId,
stars: stars,
currency: currency,
amount: amount,
);
// Now return the deserialized [InputStorePaymentStarsGift].
return returnValue;
}