request method
- HttpMethod method,
- String url,
- ApiVersion apiVersion,
- {Map<
String, dynamic> ? parameters, - String? rootElement}
Implementation
Future<bool> request(HttpMethod method, String url, ApiVersion apiVersion,
{Map<String, dynamic>? parameters, String? rootElement}) async {
try {
await EasyPostRequest.executeRequest(config, method, url, apiVersion,
parameters: parameters);
return true;
} catch (e) {
return false;
}
}