getLikes method
Implementation
Future<OrderedPagedCollection> getLikes(String postId) async {
String formattedUrl =
"https://${Config.domainName}/likes/${Uri.encodeQueryComponent(postId)}";
http.Response response =
await http.get(Uri.parse(formattedUrl), headers: <String, String>{});
OrderedPagedCollection collection = OrderedPagedCollection.fromJson(
jsonDecode(utf8.decode(response.bodyBytes)));
return collection;
}