nonProblemJson function
A non-2xx JSON body that is NOT a problem (missing type/status).
Implementation
Received nonProblemJson(Map<String, Object?> body, {int status = 400}) =>
Received(
HttpResponse(
status: status,
headers: const <String, String>{'content-type': 'application/json'},
body: jsonEncode(body),
),
);