copyWithWrapped method
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),
);
}