copyWith method

TelegramPaymentPurposePremiumGiftCodes copyWith({
  1. int? boostedChatId,
  2. String? currency,
  3. int? amount,
  4. List<int>? userIds,
  5. int? monthCount,
  6. FormattedText? text,
})

Implementation

TelegramPaymentPurposePremiumGiftCodes copyWith({
  int? boostedChatId,
  String? currency,
  int? amount,
  List<int>? userIds,
  int? monthCount,
  FormattedText? text,
}) =>
    TelegramPaymentPurposePremiumGiftCodes(
      boostedChatId: boostedChatId ?? this.boostedChatId,
      currency: currency ?? this.currency,
      amount: amount ?? this.amount,
      userIds: userIds ?? this.userIds,
      monthCount: monthCount ?? this.monthCount,
      text: text ?? this.text,
    );