HttpBody.json constructor
const
HttpBody.json(
- 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._;