copyWith method
Item
copyWith({
- String? id,
- String? itemCategoryType,
- String? name,
- String? syncToken,
- String? invStartDate,
- String? type,
- double? qtyOnHand,
- ReferenceType? assetAccountRef,
- String? sku,
- bool? salesTaxIncluded,
- bool? trackQtyOnHand,
- ReferenceType? salesTaxCodeRef,
- ReferenceType? classRef,
- String? source,
- bool? purchaseTaxIncluded,
- String? description,
- double? abatementRate,
- bool? subItem,
- bool? taxable,
- String? uQCDisplayText,
- double? reorderPoint,
- String? purchaseDesc,
- ModificationMetaData? metaData,
- ReferenceType? prefVendorRef,
- bool? active,
- String? uQCId,
- double? reverseChargeRate,
- ReferenceType? purchaseTaxCodeRef,
- String? serviceType,
- double? purchaseCost,
- ReferenceType? parentRef,
- double? unitPrice,
- String? fullyQualifiedName,
- ReferenceType? expenseAccountRef,
- int? level,
- ReferenceType? incomeAccountRef,
- ReferenceType? taxClassificationRef,
Implementation
Item copyWith({
String? id,
String? itemCategoryType,
String? name,
String? syncToken,
String? invStartDate,
String? type,
double? qtyOnHand,
ReferenceType? assetAccountRef,
String? sku,
bool? salesTaxIncluded,
bool? trackQtyOnHand,
ReferenceType? salesTaxCodeRef,
ReferenceType? classRef,
String? source,
bool? purchaseTaxIncluded,
String? description,
double? abatementRate,
bool? subItem,
bool? taxable,
String? uQCDisplayText,
double? reorderPoint,
String? purchaseDesc,
ModificationMetaData? metaData,
ReferenceType? prefVendorRef,
bool? active,
String? uQCId,
double? reverseChargeRate,
ReferenceType? purchaseTaxCodeRef,
String? serviceType,
double? purchaseCost,
ReferenceType? parentRef,
double? unitPrice,
String? fullyQualifiedName,
ReferenceType? expenseAccountRef,
int? level,
ReferenceType? incomeAccountRef,
ReferenceType? taxClassificationRef
}) {
return Item(
id: id ?? this.id,
itemCategoryType: itemCategoryType ?? this.itemCategoryType,
name: name ?? this.name,
syncToken: syncToken ?? this.syncToken,
invStartDate: invStartDate ?? this.invStartDate,
type: type ?? this.type,
qtyOnHand: qtyOnHand ?? this.qtyOnHand,
assetAccountRef: assetAccountRef ?? this.assetAccountRef,
sku: sku ?? this.sku,
salesTaxIncluded: salesTaxIncluded ?? this.salesTaxIncluded,
trackQtyOnHand: trackQtyOnHand ?? this.trackQtyOnHand,
salesTaxCodeRef: salesTaxCodeRef ?? this.salesTaxCodeRef,
classRef: classRef ?? this.classRef,
source: source ?? this.source,
purchaseTaxIncluded: purchaseTaxIncluded ?? this.purchaseTaxIncluded,
description: description ?? this.description,
abatementRate: abatementRate ?? this.abatementRate,
subItem: subItem ?? this.subItem,
taxable: taxable ?? this.taxable,
uQCDisplayText: uQCDisplayText ?? this.uQCDisplayText,
reorderPoint: reorderPoint ?? this.reorderPoint,
purchaseDesc: purchaseDesc ?? this.purchaseDesc,
metaData: metaData ?? this.metaData,
prefVendorRef: prefVendorRef ?? this.prefVendorRef,
active: active ?? this.active,
uQCId: uQCId ?? this.uQCId,
reverseChargeRate: reverseChargeRate ?? this.reverseChargeRate,
purchaseTaxCodeRef: purchaseTaxCodeRef ?? this.purchaseTaxCodeRef,
serviceType: serviceType ?? this.serviceType,
purchaseCost: purchaseCost ?? this.purchaseCost,
parentRef: parentRef ?? this.parentRef,
unitPrice: unitPrice ?? this.unitPrice,
fullyQualifiedName: fullyQualifiedName ?? this.fullyQualifiedName,
expenseAccountRef: expenseAccountRef ?? this.expenseAccountRef,
level: level ?? this.level,
incomeAccountRef: incomeAccountRef ?? this.incomeAccountRef,
taxClassificationRef: taxClassificationRef ?? this.taxClassificationRef
);
}