mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 08:27:54 +00:00
water leak
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'package:syncrow_app/features/devices/model/status_model.dart';
|
||||
|
||||
class WaterLeakModel {
|
||||
bool waterContactState;
|
||||
String waterContactState;
|
||||
int batteryPercentage;
|
||||
|
||||
WaterLeakModel({
|
||||
@@ -10,7 +10,7 @@ class WaterLeakModel {
|
||||
});
|
||||
|
||||
factory WaterLeakModel.fromJson(List<StatusModel> jsonList) {
|
||||
late bool _waterContactState;
|
||||
late String _waterContactState;
|
||||
late int _batteryPercentage;
|
||||
|
||||
for (int i = 0; i < jsonList.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user