This commit is contained in:
Scott E. Graves 2025-03-24 11:50:52 -05:00
parent cd41e026ee
commit 6244a587db

View File

@ -119,8 +119,15 @@ class Mount with ChangeNotifier {
return <String>[]; return <String>[];
} }
debugPrint("response|$jsonDecode(response.body)"); List<String> ret = [];
return jsonDecode(response.body) as List<String>; {
final list = jsonDecode(response.body) as List;
for (var item in list) {
ret.add(item as String);
}
}
return ret;
} catch (e) { } catch (e) {
debugPrint('$e'); debugPrint('$e');
} }