apiDeleteJson method

Future apiDeleteJson(
  1. String endpoint, {
  2. Map<String, String>? headers,
})

Returns the body decoded as JSON of the given endpoint in the specified RestAPI after a DELETE request. To proper use, specify apiBaseUrl.

Implementation

Future<dynamic> apiDeleteJson(
  String endpoint, {
  Map<String, String>? headers,
}) async =>
    json.decode(await apiDelete(endpoint, headers: headers));