acceptsJson property

bool get acceptsJson

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

Implementation

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