ok static method

Response ok(
  1. Map body, {
  2. Map<String, Object>? headers,
})

Constructs a 200 OK response.

Implementation

static Response ok(Map body, {Map<String, Object>? headers}) {
  return Response.ok(json.encode(body), headers: headers);
}