TimerState.fromMap constructor
Implementation
factory TimerState.fromMap(Map<String, dynamic> map) {
double volume = map['volume'].toDouble() ?? 80.0;
return TimerState(
map['paused'] ?? false,
map['status'] ?? "",
map['currentInterval'] ?? 0,
map['currentMicroSeconds'] ?? 0,
map['intervalMicroSeconds'] ?? 0,
volume,
map['changeVolume'] ?? false,
);
}