String jsonEncodeShadows(List<IrShadow> shadows) => jsonEncode([for (final s in shadows) s.toJson()]);