As illustrated in this Go-GiThub project, a media type wouldn't be part of a JSON struct.
It would be part of the request headers:
See github/github.go
:
mediaTypeV3 = "application/vnd.github.v3+json"
req.Header.Add("Accept", mediaTypeV3)
In your case: application/vnd.github.v3.raw