putForJson static method
Sends a HTTP PUT request to the given url
with the given body
, queryParameters
and headers
.
Returns the response as a map using json.decode.
Implementation
static Future<Map<String, dynamic>> putForJson(String url,
{String? body,
Map<String, String>? queryParameters,
Map<String, String>? headers}) async {
return await _put(url,
body: body,
queryParameters: queryParameters,
headers: headers,
returnType: HttpRequestReturnType.JSON) as Map<String, dynamic>;
}