mediaTypeOf static method
Parses MediaType
instance from contentType
.
MediaType('application', 'octet-stream')
is returned if contentType
is
null.
Implementation
static MediaType mediaTypeOf(String? contentType) => contentType != null
? MediaType.parse(contentType)
: MediaType('application', 'octet-stream');