fromJson static method
Returns a new EmployeeStatistics instance and imports its values from
value
if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static EmployeeStatistics fromJson(dynamic value) {
final json = value.cast<String, dynamic>();
return EmployeeStatistics(
monthlyProvided: mapValueOfType<double>(json, r'monthlyProvided')!,
monthlyGoal: mapValueOfType<int>(json, r'monthlyGoal')!,
weeklyProvided: mapValueOfType<double>(json, r'weeklyProvided')!,
weeklyGoal: mapValueOfType<double>(json, r'weeklyGoal')!,
dailyProvided: mapValueOfType<double>(json, r'dailyProvided')!,
dailyGoal: mapValueOfType<double>(json, r'dailyGoal')!,
monthlyCancelled: mapValueOfType<double>(json, r'monthlyCancelled')!,
monthlyScheduled: mapValueOfType<double>(json, r'monthlyScheduled')!,
);
}