fetchLink method

Future fetchLink()

Implementation

Future fetchLink() async {
  final response = await http.get(
      Uri.parse('https://api.wit.ai/$params?q=$utterance'),
      headers: {'Authorization': 'Bearer $headers'});

  if (response.statusCode == 200) {
    String witResponse = response.body;
    return jsonDecode(witResponse);
  } else {
    print('Error');
  }
}