Extracted clients to a separate provider

This commit is contained in:
Juan Gilsanz Polo 2023-05-24 14:16:53 +02:00
parent 4a2d78e8cf
commit 8a3d42b66c
12 changed files with 192 additions and 250 deletions

View file

@ -591,7 +591,7 @@ Future getClients(Server server) async {
if (result[0]['hasResponse'] == true && result[1]['hasResponse'] == true) {
if (result[0]['statusCode'] == 200 && result[1]['statusCode'] == 200) {
final clients = ClientsData.fromJson(jsonDecode(result[0]['body']));
final clients = Clients.fromJson(jsonDecode(result[0]['body']));
clients.clientsAllowedBlocked = ClientsAllowedBlocked.fromJson(jsonDecode(result[1]['body']));
return {
'result': 'success',