copyWith method

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

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

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