isBodyTypeJSON property

bool isBodyTypeJSON

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

Implementation

bool get isBodyTypeJSON {
  var mimeType = bodyMimeType;
  if (mimeType == null) return false;
  return mimeType.isJSON || mimeType.isJavascript;
}