fromJson static method

MonthlyInvoiceSummaryModel fromJson(
  1. dynamic value
)

Returns a new MonthlyInvoiceSummaryModel instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static MonthlyInvoiceSummaryModel fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return MonthlyInvoiceSummaryModel(
    toInvoice: mapValueOfType<double>(json, r'toInvoice')!,
    invoiced: mapValueOfType<double>(json, r'invoiced')!,
    customerSummaries: InvoiceSummaryModel.listFromJson(
      json[r'customerSummaries'],
    ),
  );
}