RequestBody constructor

const RequestBody({
  1. String? description,
  2. bool? required,
  3. Map<String, MediaType>? content,
  4. @JsonKey(name: '\$ref') @_RequestRefConverter() String? ref,
})

Implementation

const factory RequestBody({
  /// A brief description of the request body.
  String? description,

  /// Determines if the request body is required in the request.
  bool? required,

  /// The content of the request body.
  Map<String, MediaType>? content,

  /// Reference to a response defined in [Components.requestBodies]
  @JsonKey(name: '\$ref') @_RequestRefConverter() String? ref,
}) = _RequestBody;