sendObjectAsJson static method
Implementation
static sendObjectAsJson(HttpRequest request,Object o) async {
await request.response
..statusCode = 200
..headers.contentType = ContentType.json
..write(jsonEncode(o))
..close();
}
static sendObjectAsJson(HttpRequest request,Object o) async {
await request.response
..statusCode = 200
..headers.contentType = ContentType.json
..write(jsonEncode(o))
..close();
}