copyWith method

QuickbooksAccount copyWith({
  1. String? id,
  2. String? name,
  3. String? syncToken,
  4. String? acctNum,
  5. QuickbooksReferenceType? parentRef,
  6. QuickbooksReferenceType? currencyRef,
  7. String? description,
  8. bool? active,
  9. Map<String, dynamic>? metaData,
  10. bool? subAccount,
  11. String? classification,
  12. String? fullyQualifiedName,
  13. String? txnLocationType,
  14. String? accountType,
  15. double? currentBalance,
  16. double? currentBalanceWithSubAccounts,
  17. String? accountAlias,
  18. QuickbooksReferenceType? taxCodeRef,
  19. String? accountSubType,
})

Implementation

QuickbooksAccount copyWith({
  String? id,
  String? name,
  String? syncToken,
  String? acctNum,
  QuickbooksReferenceType? parentRef,
  QuickbooksReferenceType? currencyRef,
  String? description,
  bool? active,
  Map<String, dynamic>? metaData,
  bool? subAccount,
  String? classification,
  String? fullyQualifiedName,
  String? txnLocationType,
  String? accountType,
  double? currentBalance,
  double? currentBalanceWithSubAccounts,
  String? accountAlias,
  QuickbooksReferenceType? taxCodeRef,
  String? accountSubType,
}) {
  return QuickbooksAccount(
    id: id ?? this.id,
    name: name ?? this.name,
    syncToken: syncToken ?? this.syncToken,
    acctNum: acctNum ?? this.acctNum,
    parentRef: parentRef ?? this.parentRef,
    currencyRef: currencyRef ?? this.currencyRef,
    description: description ?? this.description,
    active: active ?? this.active,
    metaData: metaData ?? this.metaData,
    subAccount: subAccount ?? this.subAccount,
    classification: classification ?? this.classification,
    fullyQualifiedName: fullyQualifiedName ?? this.fullyQualifiedName,
    txnLocationType: txnLocationType ?? this.txnLocationType,
    accountType: accountType ?? this.accountType,
    currentBalance: currentBalance ?? this.currentBalance,
    currentBalanceWithSubAccounts:
        currentBalanceWithSubAccounts ?? this.currentBalanceWithSubAccounts,
    accountAlias: accountAlias ?? this.accountAlias,
    taxCodeRef: taxCodeRef ?? this.taxCodeRef,
    accountSubType: accountSubType ?? this.accountSubType,
  );
}