swagger-ui/lib/shred/content.js
function(options) {
  this.body = options.body;
  this.data = options.data;
  this.type = options.type;
}
function(options) {
  this.body = options.body;
  this.data = options.data;
  this.type = options.type;
}
The `Content` constructor takes an options object, which *must* have either a `body` or `data` property and *may* have a `type` property indicating the media type. If there is no `type` attribute, a default will be inferred.