attendanceTypeFromString function
Converts a string type
to the corresponding AttendanceType enum value.
Implementation
AttendanceType? attendanceTypeFromString(String? type) {
switch (type) {
case 'normal':
return AttendanceType.normal;
case 'clockout':
return AttendanceType.clockOut;
default:
return null;
}
}