copyWithWrapped method

InvoiceResponseModel copyWithWrapped({
  1. Wrapped<int>? amountDueCents,
  2. Wrapped? discountPercentOff,
  3. Wrapped<int>? nextPaymentAttemptUnix,
})

Implementation

InvoiceResponseModel copyWithWrapped(
    {Wrapped<int>? amountDueCents,
    Wrapped<dynamic>? discountPercentOff,
    Wrapped<int>? nextPaymentAttemptUnix}) {
  return InvoiceResponseModel(
      amountDueCents: (amountDueCents != null
          ? amountDueCents.value
          : this.amountDueCents),
      discountPercentOff: (discountPercentOff != null
          ? discountPercentOff.value
          : this.discountPercentOff),
      nextPaymentAttemptUnix: (nextPaymentAttemptUnix != null
          ? nextPaymentAttemptUnix.value
          : this.nextPaymentAttemptUnix));
}