Swagger constructor

const Swagger({
  1. required String id,
  2. String openapi = '3.0.3',
  3. required SwaggerInfo info,
  4. required List<SwaggerServer> servers,
  5. List<SwaggerTag> tags = const [],
  6. Map<String, List<SwaggerPath>> paths = const {},
  7. SwaggerComponent? components,
})

Implementation

const Swagger({
  required this.id,
  this.openapi = '3.0.3',
  required this.info,
  required this.servers,
  this.tags = const [],
  this.paths = const {},
  this.components,
});