TimeTrackingConfiguration.fromJson constructor

TimeTrackingConfiguration.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory TimeTrackingConfiguration.fromJson(Map<String, Object?> json) {
  return TimeTrackingConfiguration(
    defaultUnit: TimeTrackingConfigurationDefaultUnit.fromValue(
        json[r'defaultUnit'] as String? ?? ''),
    timeFormat: TimeTrackingConfigurationTimeFormat.fromValue(
        json[r'timeFormat'] as String? ?? ''),
    workingDaysPerWeek: json[r'workingDaysPerWeek'] as num? ?? 0,
    workingHoursPerDay: json[r'workingHoursPerDay'] as num? ?? 0,
  );
}