Map<String, dynamic> toJson() => { 'condition': this.condition, 'delay': this.delay, 'alarm': this.alarm.toJson(), };