Bug fixes

This commit is contained in:
Abdullah Alassaf
2024-09-23 00:35:07 +03:00
parent d97efe229d
commit 62e80c89a2
33 changed files with 1203 additions and 1192 deletions
@@ -1,7 +1,7 @@
class DeviceReport {
final String? deviceUuid;
final int? startTime;
final int? endTime;
final String? startTime;
final String? endTime;
final List<DeviceEvent>? data;
DeviceReport({
@@ -13,8 +13,8 @@ class DeviceReport {
DeviceReport.fromJson(Map<String, dynamic> json)
: deviceUuid = json['deviceUuid'] as String?,
startTime = json['startTime'] as int?,
endTime = json['endTime'] as int?,
startTime = json['startTime'] as String?,
endTime = json['endTime'] as String?,
data = (json['data'] as List<dynamic>?)
?.map((e) => DeviceEvent.fromJson(e as Map<String, dynamic>))
.toList();
@@ -0,0 +1,11 @@
class GroupOneGangModel {
final String deviceId;
final String deviceName;
bool firstSwitch;
GroupOneGangModel({
required this.deviceId,
required this.deviceName,
required this.firstSwitch,
});
}