postJson method

Future postJson(
  1. String path, {
  2. Object? body,
})

Implementation

Future<dynamic> postJson(String path, {Object? body}) async {
  final url = _url(path);
  return _decode(await _send('POST', url,
      () => http.post(url, headers: _headers(), body: _encode(body)),
      retryable: false));
}