copyWithWrapped method
Implementation
ShopifySharpDiscountCode copyWithWrapped({
Wrapped<String?>? amount,
Wrapped<String?>? code,
Wrapped<String?>? type,
Wrapped<int?>? id,
Wrapped<String?>? adminGraphqlApiId,
}) {
return ShopifySharpDiscountCode(
amount: (amount != null ? amount.value : this.amount),
code: (code != null ? code.value : this.code),
type: (type != null ? type.value : this.type),
id: (id != null ? id.value : this.id),
adminGraphqlApiId: (adminGraphqlApiId != null
? adminGraphqlApiId.value
: this.adminGraphqlApiId),
);
}