copyWith method

MessagePaymentRefunded copyWith({
  1. MessageSender? ownerId,
  2. String? currency,
  3. int? totalAmount,
  4. String? invoicePayload,
  5. String? telegramPaymentChargeId,
  6. String? providerPaymentChargeId,
})

Implementation

MessagePaymentRefunded copyWith({
  MessageSender? ownerId,
  String? currency,
  int? totalAmount,
  String? invoicePayload,
  String? telegramPaymentChargeId,
  String? providerPaymentChargeId,
}) => MessagePaymentRefunded(
  ownerId: ownerId ?? this.ownerId,
  currency: currency ?? this.currency,
  totalAmount: totalAmount ?? this.totalAmount,
  invoicePayload: invoicePayload ?? this.invoicePayload,
  telegramPaymentChargeId:
      telegramPaymentChargeId ?? this.telegramPaymentChargeId,
  providerPaymentChargeId:
      providerPaymentChargeId ?? this.providerPaymentChargeId,
);