mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
push living room status
This commit is contained in:
26
lib/pages/device_managment/all_devices/models/room.dart
Normal file
26
lib/pages/device_managment/all_devices/models/room.dart
Normal file
@ -0,0 +1,26 @@
|
||||
class DevicesModelRoom {
|
||||
/*
|
||||
{
|
||||
"uuid": "75ea7d60-5104-4726-b5f8-ea426c0c6a1b",
|
||||
"name": "Room 1"
|
||||
}
|
||||
*/
|
||||
|
||||
String? uuid;
|
||||
String? name;
|
||||
|
||||
DevicesModelRoom({
|
||||
this.uuid,
|
||||
this.name,
|
||||
});
|
||||
DevicesModelRoom.fromJson(Map<String, dynamic> json) {
|
||||
uuid = json['uuid']?.toString();
|
||||
name = json['name']?.toString();
|
||||
}
|
||||
Map<String, dynamic> toJson() {
|
||||
final data = <String, dynamic>{};
|
||||
data['uuid'] = uuid;
|
||||
data['name'] = name;
|
||||
return data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user