acceptsJson property Null safety

bool acceptsJson

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

Implementation

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