mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
routines and automation Toggle
This commit is contained in:
@ -9,6 +9,9 @@ class ScenesModel {
|
||||
final String status;
|
||||
final String type;
|
||||
final String? icon;
|
||||
final String spaceName;
|
||||
final String spaceId;
|
||||
final String communityId;
|
||||
|
||||
ScenesModel({
|
||||
required this.id,
|
||||
@ -16,6 +19,9 @@ class ScenesModel {
|
||||
required this.name,
|
||||
required this.status,
|
||||
required this.type,
|
||||
required this.spaceName,
|
||||
required this.spaceId,
|
||||
required this.communityId,
|
||||
this.icon,
|
||||
});
|
||||
|
||||
@ -41,6 +47,9 @@ class ScenesModel {
|
||||
name: json["name"] ?? '',
|
||||
status: json["status"] ?? '',
|
||||
type: json["type"] ?? '',
|
||||
spaceName: json["spaceName"] ?? '',
|
||||
spaceId: json["spaceId"] ?? '',
|
||||
communityId: json["communityId"] ?? '',
|
||||
icon:
|
||||
isAutomation == true ? Assets.automation : (json["icon"] as String?),
|
||||
);
|
||||
@ -52,5 +61,8 @@ class ScenesModel {
|
||||
"name": name,
|
||||
"status": status,
|
||||
"type": type,
|
||||
"spaceName": spaceName,
|
||||
"spaceId": spaceId,
|
||||
"communityId": communityId,
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user