mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-11-26 18:34:56 +00:00
@ -18,7 +18,7 @@ class LivingRoomStatusModel {
|
||||
late bool switch2;
|
||||
late bool switch3;
|
||||
|
||||
for (final status in jsonList) {
|
||||
for (var status in jsonList) {
|
||||
switch (status.code) {
|
||||
case 'switch_1':
|
||||
switch1 = status.value ?? false; // default to false if null
|
||||
|
||||
Reference in New Issue
Block a user