Response constructor
- @JsonSerializable.new(includeIfNull: false, explicitToJson: true)
Creates a Response object.
Implementation
@JsonSerializable(includeIfNull: false, explicitToJson: true)
const factory Response({
/// A brief description of the response.
required String description,
/// The response schema for OpenAPI 2.0.
Schema? schema,
/// The content of the response for OpenAPI 3.0.
Map<String, MediaType>? content,
/// A map of headers for this response.
Map<String, Header>? headers,
/// The reference to the response schema.
@JsonKey(name: r'$ref') String? ref,
}) = _Response;