copyWith method

UpgradedGift copyWith({
  1. int? id,
  2. int? regularGiftId,
  3. int? publisherChatId,
  4. String? title,
  5. String? name,
  6. int? number,
  7. int? totalUpgradedCount,
  8. int? maxUpgradedCount,
  9. bool? isBurned,
  10. bool? isCrafted,
  11. bool? isPremium,
  12. bool? isThemeAvailable,
  13. int? usedThemeChatId,
  14. MessageSender? hostId,
  15. MessageSender? ownerId,
  16. String? ownerAddress,
  17. String? ownerName,
  18. String? giftAddress,
  19. UpgradedGiftModel? model,
  20. UpgradedGiftSymbol? symbol,
  21. UpgradedGiftBackdrop? backdrop,
  22. UpgradedGiftOriginalDetails? originalDetails,
  23. UpgradedGiftColors? colors,
  24. GiftResaleParameters? resaleParameters,
  25. bool? canSendPurchaseOffer,
  26. int? craftProbabilityPerMille,
  27. String? valueCurrency,
  28. int? valueAmount,
  29. int? valueUsdAmount,
})

Implementation

UpgradedGift copyWith({
  int? id,
  int? regularGiftId,
  int? publisherChatId,
  String? title,
  String? name,
  int? number,
  int? totalUpgradedCount,
  int? maxUpgradedCount,
  bool? isBurned,
  bool? isCrafted,
  bool? isPremium,
  bool? isThemeAvailable,
  int? usedThemeChatId,
  MessageSender? hostId,
  MessageSender? ownerId,
  String? ownerAddress,
  String? ownerName,
  String? giftAddress,
  UpgradedGiftModel? model,
  UpgradedGiftSymbol? symbol,
  UpgradedGiftBackdrop? backdrop,
  UpgradedGiftOriginalDetails? originalDetails,
  UpgradedGiftColors? colors,
  GiftResaleParameters? resaleParameters,
  bool? canSendPurchaseOffer,
  int? craftProbabilityPerMille,
  String? valueCurrency,
  int? valueAmount,
  int? valueUsdAmount,
}) => UpgradedGift(
  id: id ?? this.id,
  regularGiftId: regularGiftId ?? this.regularGiftId,
  publisherChatId: publisherChatId ?? this.publisherChatId,
  title: title ?? this.title,
  name: name ?? this.name,
  number: number ?? this.number,
  totalUpgradedCount: totalUpgradedCount ?? this.totalUpgradedCount,
  maxUpgradedCount: maxUpgradedCount ?? this.maxUpgradedCount,
  isBurned: isBurned ?? this.isBurned,
  isCrafted: isCrafted ?? this.isCrafted,
  isPremium: isPremium ?? this.isPremium,
  isThemeAvailable: isThemeAvailable ?? this.isThemeAvailable,
  usedThemeChatId: usedThemeChatId ?? this.usedThemeChatId,
  hostId: hostId ?? this.hostId,
  ownerId: ownerId ?? this.ownerId,
  ownerAddress: ownerAddress ?? this.ownerAddress,
  ownerName: ownerName ?? this.ownerName,
  giftAddress: giftAddress ?? this.giftAddress,
  model: model ?? this.model,
  symbol: symbol ?? this.symbol,
  backdrop: backdrop ?? this.backdrop,
  originalDetails: originalDetails ?? this.originalDetails,
  colors: colors ?? this.colors,
  resaleParameters: resaleParameters ?? this.resaleParameters,
  canSendPurchaseOffer: canSendPurchaseOffer ?? this.canSendPurchaseOffer,
  craftProbabilityPerMille:
      craftProbabilityPerMille ?? this.craftProbabilityPerMille,
  valueCurrency: valueCurrency ?? this.valueCurrency,
  valueAmount: valueAmount ?? this.valueAmount,
  valueUsdAmount: valueUsdAmount ?? this.valueUsdAmount,
);