acceptsJson property

bool acceptsJson

Returns true if the client accepts the response body in JSON format.

Implementation

bool get acceptsJson => accepts.containsKey(MimeTypes.json);