mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 02:44:55 +00:00
light interface
This commit is contained in:
@ -6,10 +6,13 @@ class LightModel extends DeviceModel {
|
||||
|
||||
late int lightingMode;
|
||||
|
||||
late List<int> recentColors;
|
||||
|
||||
LightModel({
|
||||
required this.brightness,
|
||||
required this.color,
|
||||
required this.lightingMode,
|
||||
required this.recentColors,
|
||||
required super.id,
|
||||
required super.name,
|
||||
required super.type,
|
||||
@ -25,6 +28,7 @@ class LightModel extends DeviceModel {
|
||||
'color': color,
|
||||
'lightingMode': lightingMode,
|
||||
'timer': timer,
|
||||
'recentColors': recentColors,
|
||||
'id': id,
|
||||
'name': name,
|
||||
'status': status,
|
||||
@ -46,6 +50,7 @@ class LightModel extends DeviceModel {
|
||||
type: json['type'],
|
||||
location: json['location'],
|
||||
image: json['image'],
|
||||
recentColors: json['recentColors'],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user