copyWith method

MessageUpgradedGiftPurchaseOfferRejected copyWith({
  1. UpgradedGift? gift,
  2. GiftResalePrice? price,
  3. int? offerMessageId,
  4. bool? wasExpired,
})

Implementation

MessageUpgradedGiftPurchaseOfferRejected copyWith({
  UpgradedGift? gift,
  GiftResalePrice? price,
  int? offerMessageId,
  bool? wasExpired,
}) =>
    MessageUpgradedGiftPurchaseOfferRejected(
      gift: gift ?? this.gift,
      price: price ?? this.price,
      offerMessageId: offerMessageId ?? this.offerMessageId,
      wasExpired: wasExpired ?? this.wasExpired,
    );