Info constructor
- @JsonSerializable.new(includeIfNull: false, explicitToJson: true)
Creates an instance of Info.
Implementation
@JsonSerializable(includeIfNull: false, explicitToJson: true)
const factory Info({
/// The title of the API.
required String title,
/// The version of the API.
required String version,
/// A short description of the API.
String? description,
/// A URL to the API's terms of service.
String? termsOfService,
/// The contact information for the API.
Contact? contact,
/// The license information for the API.
License? license,
/// A short summary of the API.
String? summary,
/// Vendor extensions (keys like `x-*`).
@JsonKey(includeIfNull: false, includeFromJson: false, includeToJson: false)
Map<String, dynamic>? extensions,
}) = _Info;