factory Alarm.fromJson(Map<String, dynamic> json) { return Alarm( alarmName: json['AlarmName'] as String?, ); }