copyWith method
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,
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,
);
}