copyWith method

InvoiceResponseModel copyWith({
  1. int? amountDueCents,
  2. dynamic discountPercentOff,
  3. int? nextPaymentAttemptUnix,
})

Implementation

InvoiceResponseModel copyWith(
    {int? amountDueCents,
    dynamic discountPercentOff,
    int? nextPaymentAttemptUnix}) {
  return InvoiceResponseModel(
      amountDueCents: amountDueCents ?? this.amountDueCents,
      discountPercentOff: discountPercentOff ?? this.discountPercentOff,
      nextPaymentAttemptUnix:
          nextPaymentAttemptUnix ?? this.nextPaymentAttemptUnix);
}