mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 00:04:54 +00:00
set default values in the devices models instead of late, and fixed issues in the AC bloc
This commit is contained in:
@ -10,8 +10,8 @@ class SosModel {
|
||||
});
|
||||
|
||||
factory SosModel.fromJson(List<StatusModel> jsonList) {
|
||||
late String _sosContactState;
|
||||
late int _batteryPercentage;
|
||||
String _sosContactState = '';
|
||||
int _batteryPercentage = 0;
|
||||
|
||||
for (int i = 0; i < jsonList.length; i++) {
|
||||
if (jsonList[i].code == 'sos') {
|
||||
|
||||
Reference in New Issue
Block a user