copyWith method

MessageUpgradedGiftPurchaseOffer copyWith({
  1. UpgradedGift? gift,
  2. GiftPurchaseOfferState? state,
  3. GiftResalePrice? price,
  4. int? expirationDate,
})

Implementation

MessageUpgradedGiftPurchaseOffer copyWith({
  UpgradedGift? gift,
  GiftPurchaseOfferState? state,
  GiftResalePrice? price,
  int? expirationDate,
}) =>
    MessageUpgradedGiftPurchaseOffer(
      gift: gift ?? this.gift,
      state: state ?? this.state,
      price: price ?? this.price,
      expirationDate: expirationDate ?? this.expirationDate,
    );