mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
36 lines
907 B
Dart
36 lines
907 B
Dart
class SmartSceneEnable {
|
|
final String entityId;
|
|
final String actionExecutor;
|
|
final String sceneORAutomationName;
|
|
final bool isAutomation;
|
|
final String type;
|
|
|
|
SmartSceneEnable({
|
|
required this.entityId,
|
|
required this.actionExecutor,
|
|
required this.sceneORAutomationName,
|
|
required this.isAutomation,
|
|
required this.type,
|
|
});
|
|
|
|
factory SmartSceneEnable.fromJson(Map<String, dynamic> json) {
|
|
return SmartSceneEnable(
|
|
entityId: json['entityId'],
|
|
actionExecutor: json['actionExecutor'],
|
|
sceneORAutomationName: json['sceneORAutomationName'],
|
|
isAutomation: json['isAutomation'],
|
|
type: json['type'],
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'entityId': entityId,
|
|
'actionExecutor': actionExecutor,
|
|
'sceneORAutomationName': sceneORAutomationName,
|
|
'isAutomation': isAutomation,
|
|
'type': type,
|
|
};
|
|
}
|
|
}
|