copyWithWrapped method

ShopifySharpRefund copyWithWrapped({
  1. Wrapped<int?>? orderId,
  2. Wrapped<DateTime?>? createdAt,
  3. Wrapped<bool?>? notify,
  4. Wrapped<ShopifySharpShipping?>? shipping,
  5. Wrapped<String?>? currency,
  6. Wrapped<List<ShopifySharpRefundOrderAdjustment>?>? orderAdjustments,
  7. Wrapped<DateTime?>? processedAt,
  8. Wrapped<String?>? note,
  9. Wrapped<String?>? discrepancyReason,
  10. Wrapped<List<ShopifySharpRefundLineItem>?>? refundLineItems,
  11. Wrapped<List<ShopifySharpTransaction>?>? transactions,
  12. Wrapped<int?>? userId,
  13. Wrapped<List<ShopifySharpRefundDuty>?>? duties,
  14. Wrapped<List<ShopifySharpRefundDutyType>?>? refundDuties,
  15. Wrapped<ShopifySharpEntitiesReturn?>? $return,
  16. Wrapped<int?>? id,
  17. Wrapped<String?>? adminGraphqlApiId,
})

Implementation

ShopifySharpRefund copyWithWrapped({
  Wrapped<int?>? orderId,
  Wrapped<DateTime?>? createdAt,
  Wrapped<bool?>? notify,
  Wrapped<ShopifySharpShipping?>? shipping,
  Wrapped<String?>? currency,
  Wrapped<List<ShopifySharpRefundOrderAdjustment>?>? orderAdjustments,
  Wrapped<DateTime?>? processedAt,
  Wrapped<String?>? note,
  Wrapped<String?>? discrepancyReason,
  Wrapped<List<ShopifySharpRefundLineItem>?>? refundLineItems,
  Wrapped<List<ShopifySharpTransaction>?>? transactions,
  Wrapped<int?>? userId,
  Wrapped<List<ShopifySharpRefundDuty>?>? duties,
  Wrapped<List<ShopifySharpRefundDutyType>?>? refundDuties,
  Wrapped<ShopifySharpEntitiesReturn?>? $return,
  Wrapped<int?>? id,
  Wrapped<String?>? adminGraphqlApiId,
}) {
  return ShopifySharpRefund(
    orderId: (orderId != null ? orderId.value : this.orderId),
    createdAt: (createdAt != null ? createdAt.value : this.createdAt),
    notify: (notify != null ? notify.value : this.notify),
    shipping: (shipping != null ? shipping.value : this.shipping),
    currency: (currency != null ? currency.value : this.currency),
    orderAdjustments: (orderAdjustments != null
        ? orderAdjustments.value
        : this.orderAdjustments),
    processedAt: (processedAt != null ? processedAt.value : this.processedAt),
    note: (note != null ? note.value : this.note),
    discrepancyReason: (discrepancyReason != null
        ? discrepancyReason.value
        : this.discrepancyReason),
    refundLineItems: (refundLineItems != null
        ? refundLineItems.value
        : this.refundLineItems),
    transactions: (transactions != null
        ? transactions.value
        : this.transactions),
    userId: (userId != null ? userId.value : this.userId),
    duties: (duties != null ? duties.value : this.duties),
    refundDuties: (refundDuties != null
        ? refundDuties.value
        : this.refundDuties),
    $return: ($return != null ? $return.value : this.$return),
    id: (id != null ? id.value : this.id),
    adminGraphqlApiId: (adminGraphqlApiId != null
        ? adminGraphqlApiId.value
        : this.adminGraphqlApiId),
  );
}