diff --git a/lib/pages/device_managment/gateway/model/gateway_model.dart b/lib/pages/device_managment/gateway/model/gateway_model.dart index b9600fd7..a522aa00 100644 --- a/lib/pages/device_managment/gateway/model/gateway_model.dart +++ b/lib/pages/device_managment/gateway/model/gateway_model.dart @@ -39,7 +39,7 @@ class GatewayModel { } return GatewayModel( - uuid: json['uuid'] as String, + uuid: json['uuid'] as String? ?? '', switchAlarmSound: switchAlarmSound ?? false, masterState: masterState ?? '', factoryReset: factoryReset ?? false,