mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 15:47:56 +00:00
Bug fixes
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user