From 4b194345ae02bc7c6cff655837ef7f2e3bb94a2a Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Tue, 4 Jul 2023 20:16:17 -0500 Subject: [PATCH] fix config --- veilid-flutter/lib/veilid_config.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/veilid-flutter/lib/veilid_config.dart b/veilid-flutter/lib/veilid_config.dart index c44e0659..3f98649e 100644 --- a/veilid-flutter/lib/veilid_config.dart +++ b/veilid-flutter/lib/veilid_config.dart @@ -875,11 +875,12 @@ class VeilidConfigCapabilities { Map toJson() { return { - 'disable': disable, + 'disable': disable.map((p) => p).toList(), }; } - VeilidConfigCapabilities.fromJson(dynamic json) : disable = json['disable']; + VeilidConfigCapabilities.fromJson(dynamic json) + : disable = List.from(json['disable'].map((j) => j)); } ////////////