HttpBody.json constructor

const HttpBody.json(
  1. Object? json
)

A JSON body. The Content-Type header will be set to application/json if not provided.

Implementation

const factory HttpBody.json(Object? json) = HttpBodyJson._;