Code cleanup
This commit is contained in:
parent
00403a1608
commit
8eb58c5164
|
|
@ -45,19 +45,11 @@ class ClientRepository {
|
||||||
|
|
||||||
final dynamic response = await webClient.get(url, credentials.token);
|
final dynamic response = await webClient.get(url, credentials.token);
|
||||||
|
|
||||||
// Change this
|
final ClientListResponse clientResponse = await compute<dynamic, dynamic>(
|
||||||
final ClientListResponse clientResponse1 =
|
|
||||||
serializers.deserializeWith(ClientListResponse.serializer, response);
|
|
||||||
|
|
||||||
// To this
|
|
||||||
final ClientListResponse clientResponse2 = await compute<dynamic, dynamic>(
|
|
||||||
SerializationUtils.deserializeWith,
|
SerializationUtils.deserializeWith,
|
||||||
<dynamic>[ClientListResponse.serializer, response]);
|
<dynamic>[ClientListResponse.serializer, response]);
|
||||||
|
|
||||||
print(clientResponse1);
|
return clientResponse.data;
|
||||||
print(clientResponse2);
|
|
||||||
|
|
||||||
return clientResponse2.data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<List<ClientEntity>> bulkAction(
|
Future<List<ClientEntity>> bulkAction(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue