fromJson static method
Returns a new ServiceSummary instance and imports its values from
value
if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static ServiceSummary fromJson(dynamic value) {
final json = value.cast<String, dynamic>();
return ServiceSummary(
totalHours: mapValueOfType<double>(json, r'totalHours')!,
serviceName: mapValueOfType<String>(json, r'serviceName')!,
days: (json[r'days'] as List).cast<int>(),
cancelled: mapValueOfType<bool>(json, r'cancelled')!,
);
}