putJSON method
Does a PUT request and returns a decoded JSON.
Implementation
Future<dynamic> putJSON(
String path, {
Map<String, String>? headers,
Credential? authorization,
Object? body,
String? contentType,
}) async {
return put(
path,
headers: headers,
authorization: authorization,
body: body,
contentType: contentType,
).then((r) => _jsonDecodeResponse(r));
}