copyWith method

ShopifySharpDiscountApplication copyWith({
  1. String? type,
  2. String? code,
  3. String? title,
  4. String? description,
  5. String? value,
  6. String? valueType,
  7. String? allocationMethod,
  8. String? targetSelection,
  9. String? targetType,
})

Implementation

ShopifySharpDiscountApplication copyWith({
  String? type,
  String? code,
  String? title,
  String? description,
  String? value,
  String? valueType,
  String? allocationMethod,
  String? targetSelection,
  String? targetType,
}) {
  return ShopifySharpDiscountApplication(
    type: type ?? this.type,
    code: code ?? this.code,
    title: title ?? this.title,
    description: description ?? this.description,
    value: value ?? this.value,
    valueType: valueType ?? this.valueType,
    allocationMethod: allocationMethod ?? this.allocationMethod,
    targetSelection: targetSelection ?? this.targetSelection,
    targetType: targetType ?? this.targetType,
  );
}