getFileInfoList method
Implementation
Future<List<FileInfo>?> getFileInfoList() async {
final res = await _callFunc(
jsonEncode({"key": "getFileInfoList", "params": []}),
);
if (res != null) {
return List.generate(res.length, (i) {
final value = res[i];
return FileInfo.fromJson(
Map<String, dynamic>.from(jsonDecode(jsonEncode(value))),
);
});
}
return null;
}