OpenAPIInfo constructor

OpenAPIInfo({
  1. required String title,
  2. required String version,
  3. String? summary,
  4. String? description,
  5. String? termsOfService,
  6. OpenAPIContact? contact,
  7. OpenAPILicense? license,
  8. Map<String, Object?>? extensions,
})

Creates an OpenAPI info object.

Implementation

factory OpenAPIInfo({
  required String title,
  required String version,
  String? summary,
  String? description,
  String? termsOfService,
  OpenAPIContact? contact,
  OpenAPILicense? license,
  Map<String, Object?>? extensions,
}) => OpenAPIInfo._({
  'title': title,
  'version': version,
  'summary': ?summary,
  'description': ?description,
  'termsOfService': ?termsOfService,
  'contact': ?contact,
  'license': ?license,
  ...?prefixExtensions(extensions),
});