getFileInfo method
Implementation
Future<FileInfo?> getFileInfo(String fileId) async {
final res = await _callFunc(
jsonEncode({
"key": "getFileInfo",
"params": [fileId],
}),
);
if (res != null) {
_log("getFileInfo result: $res");
return FileInfo.fromJson(jsonDecode(jsonEncode(res)));
}
return null;
}