QuickbooksAccountBasedExpenseLineDetails.fromMap constructor
Converts from a map value
Implementation
factory QuickbooksAccountBasedExpenseLineDetails.fromMap(
Map<String, dynamic> map) {
return QuickbooksAccountBasedExpenseLineDetails(
accountRef: map['AccountRef'] != null
? QuickbooksReferenceType.fromMap(
map['AccountRef'] as Map<String, dynamic>)
: null,
taxAmount: double.tryParse(map['TaxAmount'].toString()),
taxInclusiveAmt: double.tryParse(map['TaxInclusiveAmt'].toString()),
taxCodeRef: map['TaxCodeRef'] != null
? QuickbooksReferenceType.fromMap(
map['TaxCodeRef'] as Map<String, dynamic>)
: null,
classRef: map['ClassRef'] != null
? QuickbooksReferenceType.fromMap(
map['ClassRef'] as Map<String, dynamic>)
: null,
markupInfo: map['MarkupInfo'] != null
? QuickbooksMarkupInfo.fromMap(
map['MarkupInfo'] as Map<String, dynamic>)
: null,
billableStatus: map['BillableStatus'],
customerRef: map['CustomerRef'] != null
? QuickbooksReferenceType.fromMap(
map['CustomerRef'] as Map<String, dynamic>)
: null,
);
}