SwaggerMethod constructor

SwaggerMethod({
  1. required String operationId,
  2. required String httpMethod,
  3. required String path,
  4. required List<SwaggerParam> parameters,
  5. required SwaggerParam? bodyParam,
  6. required SwaggerType returnType,
  7. required int defaultStatusCode,
  8. required bool isHidden,
  9. required List<SwaggerExplicitResponse> explicitResponses,
  10. String? summary,
  11. String? description,
  12. List<String> tags = const [],
})

Implementation

SwaggerMethod({
  required this.operationId,
  required this.httpMethod,
  required this.path,
  required this.parameters,
  required this.bodyParam,
  required this.returnType,
  required this.defaultStatusCode,
  required this.isHidden,
  required this.explicitResponses,
  this.summary,
  this.description,
  List<String> tags = const [],
}) : tags = List.unmodifiable(tags);