ThresholdRelay({required Room room, Map<String, Type>? schema}) : super(room: room, schema: { "deactivation_threshold": int, "activation_threshold": int, ...?schema });