Map<String, dynamic> toJson() { final continuous = this.continuous; final oneTime = this.oneTime; return { 'continuous': continuous.toValue(), 'oneTime': oneTime.toValue(), }; }