toMap method
Implementation
Map<String, dynamic> toMap({bool withId = true}) {
return <String, dynamic>{
if (withId) 'Id': id,
'Name': name,
'SyncToken': syncToken,
'AcctNum': acctNum,
'ParentRef': parentRef?.toMap(),
'CurrencyRef': currencyRef?.toMap(),
'Description': description,
'Active': active,
'MetaData': metaData,
'SubAccount': subAccount,
'Classification': classification,
'FullyQualifiedName': fullyQualifiedName,
'TxnLocationType': txnLocationType,
'AccountType': accountType,
'CurrentBalance': currentBalance,
'CurrentBalanceWithSubAccounts': currentBalanceWithSubAccounts,
'AccountAlias': accountAlias,
'TaxCodeRef': taxCodeRef?.toMap(),
'AccountSubType': accountSubType,
};
}