Initial Commit: Duty Schedule and Attendance Logbook
This commit is contained in:
@@ -81,3 +81,22 @@ class AppSetting {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class RamadanConfig {
|
||||
RamadanConfig({required this.enabled, required this.autoDetect});
|
||||
|
||||
final bool enabled;
|
||||
final bool autoDetect;
|
||||
|
||||
factory RamadanConfig.fromJson(Map<String, dynamic> json) {
|
||||
return RamadanConfig(
|
||||
enabled: json['enabled'] as bool? ?? false,
|
||||
autoDetect: json['auto_detect'] as bool? ?? true,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'enabled': enabled,
|
||||
'auto_detect': autoDetect,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user