MutePreferences.fromMap constructor
MutePreferences.fromMap(
- dynamic map
Implementation
MutePreferences.fromMap(dynamic map) {
dnd = DNDOptions.fromValue(map['dnd']);
if (map['schedule'] != null) {
final scheduleMap = map['schedule'];
for (final key in scheduleMap.keys) {
if (schedule != null) {
schedule![DayOfWeek.fromValue(key)!] =
DaySchedule.fromMap(scheduleMap[key]);
}
}
}
}