isJson property

bool get isJson

Checks if request content type is JSON

Implementation

bool get isJson => contentType?.contains('application/json') ?? false;