water leak

This commit is contained in:
mohammad
2024-10-08 10:11:08 +03:00
parent 754d869fac
commit 75b3036e03
10 changed files with 264 additions and 249 deletions
@@ -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++) {