getContentType static method

String? getContentType(
  1. Map<String, dynamic>? headers
)

Implementation

static String? getContentType(Map<String, dynamic>? headers) {
  if (headers != null) {
    if (headers.containsKey(_jsonContentTypeSmall)) {
      return headers[_jsonContentTypeSmall] as String?;
    }
    if (headers.containsKey(_jsonContentTypeBig)) {
      return headers[_jsonContentTypeBig] as String?;
    }
  }
  return _unknownContentType;
}