isJsonResponse property

bool get isJsonResponse

Checks if the response is JSON type.

Implementation

bool get isJsonResponse =>
    responseContentType?.toLowerCase().contains('application/json') == true;