fix failing casts

This commit is contained in:
sneurlax 2023-03-07 11:57:25 -06:00
parent af15f89d38
commit 89c84a44b4

View file

@ -94,6 +94,9 @@ class EpicBoxConfigModel {
_epicBox['epicbox_address_index'] = _epicBox['address_index']; _epicBox['epicbox_address_index'] = _epicBox['address_index'];
} }
_epicBox['epicbox_protocol_insecure'] ??= false;
_epicBox['epicbox_address_index'] ??= 0;
return EpicBoxConfigModel( return EpicBoxConfigModel(
host: _epicBox['epicbox_domain'] as String, host: _epicBox['epicbox_domain'] as String,
port: _epicBox['epicbox_port'] as int, port: _epicBox['epicbox_port'] as int,