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