Header constructor
- @JsonSerializable.new(includeIfNull: false, explicitToJson: true)
Creates a Header object.
Implementation
@JsonSerializable(includeIfNull: false, explicitToJson: true)
const factory Header({
/// A brief description of the header.
String? description,
/// The data type of the header value (for OpenAPI 2.0).
String? type,
/// The format of the header value (for OpenAPI 2.0).
String? format,
/// The schema for the header value.
Schema? schema,
/// The reference to the header value
@JsonKey(name: r'$ref') String? ref,
}) = _Header;