okJson function

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

A 2xx JSON success response.

Implementation

Received okJson(Map<String, Object?> body, {int status = 200}) => Received(
  HttpResponse(
    status: status,
    headers: const <String, String>{'content-type': 'application/json'},
    body: jsonEncode(body),
  ),
);