Files
syncrow-app/lib/features/scene/model/smart_scene_enable.dart
ashrafzarkanisala 2f6d073955 fix bugs
2024-07-29 22:36:05 +03:00

32 lines
816 B
Dart

class SmartSceneEnable {
final String entityId;
final String actionExecutor;
final String sceneORAutomationName;
final bool isAutomation;
SmartSceneEnable({
required this.entityId,
required this.actionExecutor,
required this.sceneORAutomationName,
required this.isAutomation,
});
factory SmartSceneEnable.fromJson(Map<String, dynamic> json) {
return SmartSceneEnable(
entityId: json['entityId'],
actionExecutor: json['actionExecutor'],
sceneORAutomationName: json['sceneORAutomationName'],
isAutomation: json['isAutomation'],
);
}
Map<String, dynamic> toJson() {
return {
'entityId': entityId,
'actionExecutor': actionExecutor,
'sceneORAutomationName': sceneORAutomationName,
'isAutomation': isAutomation,
};
}
}