isJSONType property

bool isJSONType

Returns true if contentType is a JSON (application/json).

Implementation

bool get isJSONType =>
    _contentType != null && _contentType!.endsWith('/json');