Operation constructor
Operation({
- Iterable<
String> ? tags, - String? summary,
- String? description,
- ExternalDocumentation? externalDocs,
- String? operationId,
- Iterable<
String> ? consumes, - Iterable<
String> ? produces, - Map<
String, Response> ? responses, - Iterable<
Scheme> ? schemes, - bool? deprecated,
- Iterable<
SecurityRequirement> ? security, - Map<
String, Value> ? extensions,
Implementation
factory Operation({
$core.Iterable<$core.String>? tags,
$core.String? summary,
$core.String? description,
ExternalDocumentation? externalDocs,
$core.String? operationId,
$core.Iterable<$core.String>? consumes,
$core.Iterable<$core.String>? produces,
$core.Map<$core.String, Response>? responses,
$core.Iterable<Scheme>? schemes,
$core.bool? deprecated,
$core.Iterable<SecurityRequirement>? security,
$core.Map<$core.String, $3.Value>? extensions,
}) {
final _result = create();
if (tags != null) {
_result.tags.addAll(tags);
}
if (summary != null) {
_result.summary = summary;
}
if (description != null) {
_result.description = description;
}
if (externalDocs != null) {
_result.externalDocs = externalDocs;
}
if (operationId != null) {
_result.operationId = operationId;
}
if (consumes != null) {
_result.consumes.addAll(consumes);
}
if (produces != null) {
_result.produces.addAll(produces);
}
if (responses != null) {
_result.responses.addAll(responses);
}
if (schemes != null) {
_result.schemes.addAll(schemes);
}
if (deprecated != null) {
_result.deprecated = deprecated;
}
if (security != null) {
_result.security.addAll(security);
}
if (extensions != null) {
_result.extensions.addAll(extensions);
}
return _result;
}