QuickbooksGroupLine.fromMap constructor

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

Converts from a map value

Implementation

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