doPostJsonRequest method

Future<Response> doPostJsonRequest(
  1. Uri uri,
  2. String jsonBody, {
  3. required UriHelper uriHelper,
  4. required String bearerToken,
})

Sends an http POST request to the specified uri with a JSON body.

Implementation

Future<http.Response> doPostJsonRequest(
  final Uri uri,
  final String jsonBody, {
  required final UriHelper uriHelper,
  required final String bearerToken,
}) async =>
    http.post(
      uri,
      headers: _getBearerHeader(bearerToken),
      body: jsonBody,
    );