copyWithWrapped method
Implementation
ShopifySharpDiscountApplication copyWithWrapped({
Wrapped<String?>? type,
Wrapped<String?>? code,
Wrapped<String?>? title,
Wrapped<String?>? description,
Wrapped<String?>? value,
Wrapped<String?>? valueType,
Wrapped<String?>? allocationMethod,
Wrapped<String?>? targetSelection,
Wrapped<String?>? targetType,
}) {
return ShopifySharpDiscountApplication(
type: (type != null ? type.value : this.type),
code: (code != null ? code.value : this.code),
title: (title != null ? title.value : this.title),
description: (description != null ? description.value : this.description),
value: (value != null ? value.value : this.value),
valueType: (valueType != null ? valueType.value : this.valueType),
allocationMethod: (allocationMethod != null
? allocationMethod.value
: this.allocationMethod),
targetSelection: (targetSelection != null
? targetSelection.value
: this.targetSelection),
targetType: (targetType != null ? targetType.value : this.targetType),
);
}