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(
|
return GatewayModel(
|
||||||
uuid: json['uuid'] as String,
|
uuid: json['uuid'] as String? ?? '',
|
||||||
switchAlarmSound: switchAlarmSound ?? false,
|
switchAlarmSound: switchAlarmSound ?? false,
|
||||||
masterState: masterState ?? '',
|
masterState: masterState ?? '',
|
||||||
factoryReset: factoryReset ?? false,
|
factoryReset: factoryReset ?? false,
|
||||||
|
Reference in New Issue
Block a user