getData method
Implementation
Future<ConfigResponse> getData() async {
http.Response response = await http.get(
Uri.parse(url),
);
ConfigResponse model =
ConfigResponse.fromJson(await jsonDecode(response.body));
return model;
}
Future<ConfigResponse> getData() async {
http.Response response = await http.get(
Uri.parse(url),
);
ConfigResponse model =
ConfigResponse.fromJson(await jsonDecode(response.body));
return model;
}