nonProblemJson function

Received nonProblemJson(
  1. Map<String, Object?> body, {
  2. int status = 400,
})

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),
      ),
    );