copyWith method

QuickbooksPurchase copyWith({
  1. String? id,
  2. List<QuickbooksLine>? line,
  3. String? paymentType,
  4. QuickbooksReferenceType? accountRef,
  5. String? syncToken,
  6. QuickbooksReferenceType? currencyRef,
  7. DateTime? txnDate,
  8. String? printStatus,
  9. QuickbooksPhysicalAddress? remitToAddr,
  10. String? txnSource,
  11. List<QuickbooksLinkedTxn>? linkedTxn,
  12. String? globalTaxCalculation,
  13. String? transactionLocationType,
  14. Map<String, dynamic>? metaData,
  15. String? docNumber,
  16. String? privateNote,
  17. bool? credit,
  18. QuickbooksTxnTaxDetails? txnTaxDetail,
  19. QuickbooksReferenceType? paymentMethodRef,
  20. double? exchangeRate,
  21. QuickbooksReferenceType? departmentRef,
  22. QuickbooksReferenceType? entityRef,
  23. bool? includeInAnnualTPAR,
  24. double? totalAmt,
  25. QuickbooksReferenceType? recurDataRef,
})

Implementation

QuickbooksPurchase copyWith({
  String? id,
  List<QuickbooksLine>? line,
  String? paymentType,
  QuickbooksReferenceType? accountRef,
  String? syncToken,
  QuickbooksReferenceType? currencyRef,
  DateTime? txnDate,
  String? printStatus,
  QuickbooksPhysicalAddress? remitToAddr,
  String? txnSource,
  List<QuickbooksLinkedTxn>? linkedTxn,
  String? globalTaxCalculation,
  String? transactionLocationType,
  Map<String, dynamic>? metaData,
  String? docNumber,
  String? privateNote,
  bool? credit,
  QuickbooksTxnTaxDetails? txnTaxDetail,
  QuickbooksReferenceType? paymentMethodRef,
  double? exchangeRate,
  QuickbooksReferenceType? departmentRef,
  QuickbooksReferenceType? entityRef,
  bool? includeInAnnualTPAR,
  double? totalAmt,
  QuickbooksReferenceType? recurDataRef,
}) {
  return QuickbooksPurchase(
    id: id ?? this.id,
    line: line ?? this.line,
    paymentType: paymentType ?? this.paymentType,
    accountRef: accountRef ?? this.accountRef,
    syncToken: syncToken ?? this.syncToken,
    currencyRef: currencyRef ?? this.currencyRef,
    txnDate: txnDate ?? this.txnDate,
    printStatus: printStatus ?? this.printStatus,
    remitToAddr: remitToAddr ?? this.remitToAddr,
    txnSource: txnSource ?? this.txnSource,
    linkedTxn: linkedTxn ?? this.linkedTxn,
    globalTaxCalculation: globalTaxCalculation ?? this.globalTaxCalculation,
    transactionLocationType:
        transactionLocationType ?? this.transactionLocationType,
    metaData: metaData ?? this.metaData,
    docNumber: docNumber ?? this.docNumber,
    privateNote: privateNote ?? this.privateNote,
    credit: credit ?? this.credit,
    txnTaxDetail: txnTaxDetail ?? this.txnTaxDetail,
    paymentMethodRef: paymentMethodRef ?? this.paymentMethodRef,
    exchangeRate: exchangeRate ?? this.exchangeRate,
    departmentRef: departmentRef ?? this.departmentRef,
    entityRef: entityRef ?? this.entityRef,
    includeInAnnualTPAR: includeInAnnualTPAR ?? this.includeInAnnualTPAR,
    totalAmt: totalAmt ?? this.totalAmt,
    recurDataRef: recurDataRef ?? this.recurDataRef,
  );
}