copyWith method

QuickbooksProduct copyWith({
  1. String? id,
  2. String? fullyQualifiedName,
  3. String? domain,
  4. String? sku,
  5. String? name,
  6. double? price,
  7. double? cost,
  8. QuickbooksProductType? type,
  9. String? description,
  10. QuickbooksReferenceType? parentRef,
  11. String? syncToken,
  12. bool? sparse,
  13. bool? active,
  14. bool? taxable,
  15. QuickbooksReferenceType? incomeAccountRef,
  16. String? purchaseDesc,
  17. QuickbooksReferenceType? expenseAccountRef,
  18. QuickbooksReferenceType? assetAccountRef,
  19. bool? trackQtyOnHand,
  20. int? qtyOnHand,
  21. DateTime? invStartDate,
  22. 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,
  );
}