isJsonResponse property
bool
get
isJsonResponse
Checks if the response is JSON type.
Implementation
bool get isJsonResponse =>
responseContentType?.toLowerCase().contains('application/json') == true;
Checks if the response is JSON type.
bool get isJsonResponse =>
responseContentType?.toLowerCase().contains('application/json') == true;