copyWith method
Implementation
ShopifySharpDiscountCode copyWith({
String? amount,
String? code,
String? type,
int? id,
String? adminGraphqlApiId,
}) {
return ShopifySharpDiscountCode(
amount: amount ?? this.amount,
code: code ?? this.code,
type: type ?? this.type,
id: id ?? this.id,
adminGraphqlApiId: adminGraphqlApiId ?? this.adminGraphqlApiId,
);
}