QuickbooksTaxLine.fromMap constructor

QuickbooksTaxLine.fromMap(
  1. Map<String, dynamic> map
)

Converts from a map value

Implementation

factory QuickbooksTaxLine.fromMap(Map<String, dynamic> map) {
  return QuickbooksTaxLine(
    id: map['Id'],
    lineNum: int.tryParse(map['LineNum'].toString()) ?? 0,
    description: map['Description'],
    amount: double.tryParse(map['Amount'].toString()) ?? 0,
    type: QuickbooksLineDetailType.taxLineDetail,
    taxLineDetail: QuickbooksTaxLineDetails.fromMap(map['TaxLineDetail']),
  );
}