getFileInfo method

Future<FileInfo?> getFileInfo(
  1. String fileId
)

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;
}