copyWith method

ShopifySharpDiscountCode copyWith({
  1. String? amount,
  2. String? code,
  3. String? type,
  4. int? id,
  5. String? adminGraphqlApiId,
})

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