exportServer method
GET /servers/{serverId}/export
Implementation
Future<ServerIdDto> exportServer(String serverId, String targetPath) =>
_guardApi(() async {
PathDto pathDto = PathDto(path: targetPath);
Response response = await serverDio.get(
'/$serverId/export',
data: pathDto.toJson(),
);
return ServerIdDto.fromJson(response.data as Map<String, dynamic>);
});