From 89c84a44b4b22d5f998eb372b10190665ed2fcbc Mon Sep 17 00:00:00 2001 From: sneurlax Date: Tue, 7 Mar 2023 11:57:25 -0600 Subject: [PATCH] fix failing casts --- lib/models/epicbox_config_model.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/models/epicbox_config_model.dart b/lib/models/epicbox_config_model.dart index f66d5e924..7927fd165 100644 --- a/lib/models/epicbox_config_model.dart +++ b/lib/models/epicbox_config_model.dart @@ -94,6 +94,9 @@ class EpicBoxConfigModel { _epicBox['epicbox_address_index'] = _epicBox['address_index']; } + _epicBox['epicbox_protocol_insecure'] ??= false; + _epicBox['epicbox_address_index'] ??= 0; + return EpicBoxConfigModel( host: _epicBox['epicbox_domain'] as String, port: _epicBox['epicbox_port'] as int,