copyWith method
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,
);