parsePageData method
Implementation
@override
Future<PageData> parsePageData(String url) async {
final response = await http.get(Uri.parse(url));
if (response.statusCode == 200) {
return PageData.fromMap(jsonDecode(response.body));
} else {
throw HttpException(
"code:${response.statusCode},reason:${response.reasonPhrase}",
uri: Uri.parse(url));
}
}