UpgradedGift constructor

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

Implementation

UpgradedGift({
  required this.id,
  required this.regularGiftId,
  required this.publisherChatId,
  required this.title,
  required this.name,
  required this.number,
  required this.totalUpgradedCount,
  required this.maxUpgradedCount,
  required this.isBurned,
  required this.isCrafted,
  required this.isPremium,
  required this.isThemeAvailable,
  required this.usedThemeChatId,
  this.hostId,
  this.ownerId,
  required this.ownerAddress,
  required this.ownerName,
  required this.giftAddress,
  this.model,
  this.symbol,
  this.backdrop,
  this.originalDetails,
  this.colors,
  this.resaleParameters,
  required this.canSendPurchaseOffer,
  required this.craftProbabilityPerMille,
  required this.valueCurrency,
  required this.valueAmount,
  required this.valueUsdAmount,
});