copyWith method
QuickbooksProduct
copyWith({
- String? id,
- String? fullyQualifiedName,
- String? domain,
- String? sku,
- String? name,
- double? price,
- double? cost,
- QuickbooksProductType? type,
- String? description,
- QuickbooksReferenceType? parentRef,
- String? syncToken,
- bool? sparse,
- bool? active,
- bool? taxable,
- QuickbooksReferenceType? incomeAccountRef,
- String? purchaseDesc,
- QuickbooksReferenceType? expenseAccountRef,
- QuickbooksReferenceType? assetAccountRef,
- bool? trackQtyOnHand,
- int? qtyOnHand,
- DateTime? invStartDate,
- Map<
String, dynamic> ? metaData,
Implementation
QuickbooksProduct copyWith({
String? id,
String? fullyQualifiedName,
String? domain,
String? sku,
String? name,
double? price,
double? cost,
QuickbooksProductType? type,
String? description,
QuickbooksReferenceType? parentRef,
String? syncToken,
bool? sparse,
bool? active,
bool? taxable,
QuickbooksReferenceType? incomeAccountRef,
String? purchaseDesc,
QuickbooksReferenceType? expenseAccountRef,
QuickbooksReferenceType? assetAccountRef,
bool? trackQtyOnHand,
int? qtyOnHand,
DateTime? invStartDate,
Map<String, dynamic>? metaData,
}) {
return QuickbooksProduct(
id: id ?? this.id,
fullyQualifiedName: fullyQualifiedName ?? this.fullyQualifiedName,
domain: domain ?? this.domain,
sku: sku ?? this.sku,
name: name ?? this.name,
price: price ?? this.price,
cost: cost ?? cost,
type: type ?? this.type,
description: description ?? this.description,
syncToken: syncToken ?? this.syncToken,
parentRef: parentRef ?? this.parentRef,
sparse: sparse ?? this.sparse,
active: active ?? this.active,
taxable: taxable ?? this.taxable,
incomeAccountRef: incomeAccountRef ?? this.incomeAccountRef,
purchaseDesc: purchaseDesc ?? this.purchaseDesc,
expenseAccountRef: expenseAccountRef ?? this.expenseAccountRef,
assetAccountRef: assetAccountRef ?? this.assetAccountRef,
trackQtyOnHand: trackQtyOnHand ?? this.trackQtyOnHand,
qtyOnHand: qtyOnHand ?? this.qtyOnHand,
invStartDate: invStartDate ?? this.invStartDate,
metaData: metaData ?? this.metaData,
);
}