Info constructor

  1. @JsonSerializable.new(includeIfNull: false, explicitToJson: true)
const Info({
  1. required String title,
  2. required String version,
  3. String? description,
  4. String? termsOfService,
  5. Contact? contact,
  6. License? license,
  7. String? summary,
  8. @JsonKey.new(includeIfNull: false, includeFromJson: false, includeToJson: false) Map<String, dynamic>? extensions,
})

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;