MediaType constructor

const MediaType({
  1. Schema? schema,
  2. dynamic example,
  3. Map<String, Example>? examples,
  4. Map<String, Encoding>? encoding,
})

Implementation

const factory MediaType({
  /// The schema defining the content of the request, response, or parameter.
  Schema? schema,

  /// Example of the media type.
  dynamic example,

  // Examples of the media type.
  Map<String, Example>? examples,

  /// A map between a property name and its encoding information.
  Map<String, Encoding>? encoding,
}) = _MediaType;