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
PremiumGiftCodePaymentOption copyWith({
String? currency,
int? amount,
int? userCount,
int? monthCount,
String? storeProductId,
int? storeProductQuantity,
}) =>
PremiumGiftCodePaymentOption(
currency: currency ?? this.currency,
amount: amount ?? this.amount,
userCount: userCount ?? this.userCount,
monthCount: monthCount ?? this.monthCount,
storeProductId: storeProductId ?? this.storeProductId,
storeProductQuantity: storeProductQuantity ?? this.storeProductQuantity,
);