post<T> method
make POST response.
Implementation
Future<T> post<T>(PayMongoOptions options) async {
final _http = http ?? PayMongoHttp(secret);
final body = jsonEncode({"data": options.data});
final response = await _http.post(
Uri.https(_apiUrl, "v1${options.path}", options.params),
body: body,
);
_http.close();
return _request(response, options.path);
}