copyWithWrapped method

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

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