copyWith method

PremiumGiftCodeInfo copyWith({
  1. MessageSender? creatorId,
  2. int? creationDate,
  3. bool? isFromGiveaway,
  4. int? giveawayMessageId,
  5. int? monthCount,
  6. int? dayCount,
  7. int? userId,
  8. int? useDate,
})

Implementation

PremiumGiftCodeInfo copyWith({
  MessageSender? creatorId,
  int? creationDate,
  bool? isFromGiveaway,
  int? giveawayMessageId,
  int? monthCount,
  int? dayCount,
  int? userId,
  int? useDate,
}) =>
    PremiumGiftCodeInfo(
      creatorId: creatorId ?? this.creatorId,
      creationDate: creationDate ?? this.creationDate,
      isFromGiveaway: isFromGiveaway ?? this.isFromGiveaway,
      giveawayMessageId: giveawayMessageId ?? this.giveawayMessageId,
      monthCount: monthCount ?? this.monthCount,
      dayCount: dayCount ?? this.dayCount,
      userId: userId ?? this.userId,
      useDate: useDate ?? this.useDate,
    );