mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
Converted all the devices models to extends from DeviceModel for the purpose of unifying.
Initialized Lights feature.
This commit is contained in:
20
lib/features/devices/model/device_model.dart
Normal file
20
lib/features/devices/model/device_model.dart
Normal file
@ -0,0 +1,20 @@
|
||||
abstract class DeviceModel {
|
||||
final String? id;
|
||||
final String? name;
|
||||
final String? type;
|
||||
bool? status;
|
||||
final String? location;
|
||||
final String? image;
|
||||
final double? timer;
|
||||
bool isSelected = false;
|
||||
|
||||
DeviceModel({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.type,
|
||||
required this.status,
|
||||
required this.location,
|
||||
required this.image,
|
||||
required this.timer,
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user