fromJson static method
Returns a new InvoiceSummaryModel instance and imports its values from
value
if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static InvoiceSummaryModel fromJson(dynamic value) {
final json = value.cast<String, dynamic>();
return InvoiceSummaryModel(
customer: CustomerModel.fromJson(json[r'customer'])!,
toInvoice: mapValueOfType<double>(json, r'toInvoice')!,
totalHours: mapValueOfType<double>(json, r'totalHours')!,
serviceSummaries: ServiceSummary.listFromJson(json[r'serviceSummaries']),
invoiced: mapValueOfType<bool>(json, r'invoiced')!,
);
}