SwaggerMethod constructor
SwaggerMethod({
- required String operationId,
- required String httpMethod,
- required String path,
- required List<
SwaggerParam> parameters, - required SwaggerParam? bodyParam,
- required SwaggerType returnType,
- required int defaultStatusCode,
- required bool isHidden,
- required List<
SwaggerExplicitResponse> explicitResponses, - String? summary,
- String? description,
- 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);