mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
fix: handle nullable uuid in GatewayModel.fromJson
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user