Files
syncrow-app/lib/features/scene/model/smart_scene_enable.dart
ashrafzarkanisala b66fbc32e7 push fixes
2024-08-01 03:11:03 +03:00

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,
};
}
}