postRequest method
Implementation
Future<dynamic> postRequest(String path, Map data) async {
var url = Uri.https(AppConstants.apiEndPoint, '$path');
String body = json.encode(data);
return _http.post(url, body: body, headers: {
'Authorization': '${AppConstants.apiKey}',
'Content-Type': 'application/json'
});
}