Operation constructor

Operation({
  1. Iterable<String>? tags,
  2. String? summary,
  3. String? description,
  4. ExternalDocumentation? externalDocs,
  5. String? operationId,
  6. Iterable<String>? consumes,
  7. Iterable<String>? produces,
  8. Map<String, Response>? responses,
  9. Iterable<Scheme>? schemes,
  10. bool? deprecated,
  11. Iterable<SecurityRequirement>? security,
  12. 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, $0.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;
}