Code cleanup

This commit is contained in:
Hillel Coren 2023-07-20 08:37:36 +03:00
parent 00403a1608
commit 8eb58c5164
1 changed files with 2 additions and 10 deletions

View File

@ -45,19 +45,11 @@ class ClientRepository {
final dynamic response = await webClient.get(url, credentials.token);
// Change this
final ClientListResponse clientResponse1 =
serializers.deserializeWith(ClientListResponse.serializer, response);
// To this
final ClientListResponse clientResponse2 = await compute<dynamic, dynamic>(
final ClientListResponse clientResponse = await compute<dynamic, dynamic>(
SerializationUtils.deserializeWith,
<dynamic>[ClientListResponse.serializer, response]);
print(clientResponse1);
print(clientResponse2);
return clientResponse2.data;
return clientResponse.data;
}
Future<List<ClientEntity>> bulkAction(