Fix backup list parsing

This commit is contained in:
Inex Code 2021-12-09 03:44:05 +00:00
parent 2b8c009ef1
commit f633fecd57

View file

@ -153,7 +153,7 @@ class ServerApi extends ApiMap {
response = await client.get(
'/services/restic/backup/list',
);
return response.data.map((e) => Backup.fromJson(e)).toList();
return response.data.map<Backup>((e) => Backup.fromJson(e)).toList();
} catch (e) {
print(e);
}