def get_alarm_from_dict(self, dic): alarm = Alarm(dic['name']) alarm.set_hour(dic['hour']) alarm.set_minute(dic['minute']) return alarm