defaultFriendshipsTransform function
Parses the response
into a list of Friendship objects in an isolate.
Implementation
Future<List<Friendship>> defaultFriendshipsTransform(Response response) async {
return await compute<String, List<Friendship>>(
_isolateFriendshipsTransform,
response.body,
);
}