QuickbooksSubtotalLine.fromMap constructor
Converts from a map value
Implementation
factory QuickbooksSubtotalLine.fromMap(Map<String, dynamic> map) {
return QuickbooksSubtotalLine(
id: map['Id'],
lineNum: int.tryParse(map['LineNum'].toString()) ?? 0,
description: map['Description'],
amount: double.tryParse(map['Amount'].toString()) ?? 0,
type: QuickbooksLineDetailType.subTotalLineDetail,
subtotalLineDetail: map['SubtotalLineDetail'] != null
? QuickbooksSubtotalLineDetails.fromMap(map['SubtotalLineDetail'])
: null,
);
}