Relay constructor

Relay({
  1. required Room room,
  2. Map<String, Type>? schema,
})

Implementation

Relay({required Room room, Map<String, Type>? schema})
    : super(room: room, schema: {
        "last_on": int,
        "last_off": int,
        "power": bool,
        "automation": bool,
        "cooldown_duration": int,
        ...?schema
      });