OpenApiInfo constructor

const OpenApiInfo({
  1. required String version,
  2. required String title,
  3. String? description,
  4. String? termsOfService,
  5. OpenApiContact? contact,
  6. OpenApiLicence? licence,
})

Creates API metadata for OpenAPI documentation.

Parameters:

  • version The version of the API (required).
  • title The name of the API (required).
  • description Optional description of the API.
  • termsOfService URL to the API's terms of service (optional).
  • contact Contact information for the API maintainer (optional).
  • licence Licensing information for the API (optional).

Implementation

const OpenApiInfo({
  required this.version,
  required this.title,
  this.description,
  this.termsOfService,
  this.contact,
  this.licence,
});