QuickbooksLine.fromJson constructor

QuickbooksLine.fromJson(
  1. String source
)

Converts a json value into a line by the line type. Throws an error if the line type is not supported.

Currently supported lines are:

  • SalesItemLineDetail
  • GroupLineDetail
  • DescriptionOnlyLineDetail
  • DiscountLineDetail
  • SubTotalLineDetail
  • TaxLineDetail

Implementation

factory QuickbooksLine.fromJson(String source) =>
    QuickbooksLine.fromMap(json.decode(source) as Map<String, dynamic>);