QuickbooksMarkupInfo.fromMap constructor

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

Converts from a map value

Implementation

factory QuickbooksMarkupInfo.fromMap(Map<String, dynamic> map) {
  return QuickbooksMarkupInfo(
    priceLevelRef: map['PriceLevelRef'] != null
        ? QuickbooksReferenceType.fromMap(
            map['PriceLevelRef'] as Map<String, dynamic>)
        : null,
    percent: double.tryParse(map['Percent'].toString()),
    markupIncomeAccountRef: map['MarkUpIncomeAccountRef'] != null
        ? QuickbooksReferenceType.fromMap(
            map['MarkUpIncomeAccountRef'] as Map<String, dynamic>)
        : null,
  );
}