copyWithWrapped method

ShopifySharpPaymentTerms copyWithWrapped({
  1. Wrapped<double?>? amount,
  2. Wrapped<String?>? currency,
  3. Wrapped<int?>? dueInDays,
  4. Wrapped<String?>? paymentTermsName,
  5. Wrapped<String?>? paymentTermsType,
  6. Wrapped<List<ShopifySharpPaymentSchedule>?>? paymentSchedules,
})

Implementation

ShopifySharpPaymentTerms copyWithWrapped({
  Wrapped<double?>? amount,
  Wrapped<String?>? currency,
  Wrapped<int?>? dueInDays,
  Wrapped<String?>? paymentTermsName,
  Wrapped<String?>? paymentTermsType,
  Wrapped<List<ShopifySharpPaymentSchedule>?>? paymentSchedules,
}) {
  return ShopifySharpPaymentTerms(
    amount: (amount != null ? amount.value : this.amount),
    currency: (currency != null ? currency.value : this.currency),
    dueInDays: (dueInDays != null ? dueInDays.value : this.dueInDays),
    paymentTermsName: (paymentTermsName != null
        ? paymentTermsName.value
        : this.paymentTermsName),
    paymentTermsType: (paymentTermsType != null
        ? paymentTermsType.value
        : this.paymentTermsType),
    paymentSchedules: (paymentSchedules != null
        ? paymentSchedules.value
        : this.paymentSchedules),
  );
}