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