putJson method
Sends a PUT request with JSON body and optional auth.
Implementation
Future<TestResponse> putJson(
String path,
Object body, {
String? token,
Map<String, String>? headers,
}) => put(
path,
body: body,
headers: RequestHelper.mergeHeaders(
RequestHelper.jsonHeaders,
token != null ? AuthHelper.bearer(token) : {},
headers ?? {},
),
);