apiPutJson method

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

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

Implementation

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