getData method

Future<ConfigResponse> getData()

Implementation

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