copyWith method

MessagePaymentSuccessful copyWith({
  1. int? invoiceChatId,
  2. int? invoiceMessageId,
  3. String? currency,
  4. int? totalAmount,
  5. int? subscriptionUntilDate,
  6. bool? isRecurring,
  7. bool? isFirstRecurring,
  8. String? invoiceName,
})

Implementation

MessagePaymentSuccessful copyWith({
  int? invoiceChatId,
  int? invoiceMessageId,
  String? currency,
  int? totalAmount,
  int? subscriptionUntilDate,
  bool? isRecurring,
  bool? isFirstRecurring,
  String? invoiceName,
}) => MessagePaymentSuccessful(
  invoiceChatId: invoiceChatId ?? this.invoiceChatId,
  invoiceMessageId: invoiceMessageId ?? this.invoiceMessageId,
  currency: currency ?? this.currency,
  totalAmount: totalAmount ?? this.totalAmount,
  subscriptionUntilDate: subscriptionUntilDate ?? this.subscriptionUntilDate,
  isRecurring: isRecurring ?? this.isRecurring,
  isFirstRecurring: isFirstRecurring ?? this.isFirstRecurring,
  invoiceName: invoiceName ?? this.invoiceName,
);