copyWithWrapped method

ShopifySharpShipping copyWithWrapped({
  1. Wrapped<bool?>? fullRefund,
  2. Wrapped<double?>? amount,
  3. Wrapped<double?>? maximumRefundable,
})

Implementation

ShopifySharpShipping copyWithWrapped({
  Wrapped<bool?>? fullRefund,
  Wrapped<double?>? amount,
  Wrapped<double?>? maximumRefundable,
}) {
  return ShopifySharpShipping(
    fullRefund: (fullRefund != null ? fullRefund.value : this.fullRefund),
    amount: (amount != null ? amount.value : this.amount),
    maximumRefundable: (maximumRefundable != null
        ? maximumRefundable.value
        : this.maximumRefundable),
  );
}