public static MediaType from(String value) {
        Parser parser = new Parser(value);
        parser.parse();
        return new MediaType(parser.input().toString(), parser.type, parser.subtype, parser.parameters);
    }
Create a parsed MediaType from the given string.

@param value Media type to parse (e.g., application/json).
@return Returns the parsed media type.
@throws RuntimeException if the media type is invalid.
smithy-utils/src/main/java/software/amazon/smithy/utils/MediaType.java