SecurityScheme constructor

SecurityScheme({
  1. SecurityScheme_Type? type,
  2. String? description,
  3. String? name,
  4. SecurityScheme_In? in_4,
  5. SecurityScheme_Flow? flow,
  6. String? authorizationUrl,
  7. String? tokenUrl,
  8. Scopes? scopes,
  9. Map<String, Value>? extensions,
})

Implementation

factory SecurityScheme({
  SecurityScheme_Type? type,
  $core.String? description,
  $core.String? name,
  SecurityScheme_In? in_4,
  SecurityScheme_Flow? flow,
  $core.String? authorizationUrl,
  $core.String? tokenUrl,
  Scopes? scopes,
  $core.Map<$core.String, $0.Value>? extensions,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (description != null) {
    _result.description = description;
  }
  if (name != null) {
    _result.name = name;
  }
  if (in_4 != null) {
    _result.in_4 = in_4;
  }
  if (flow != null) {
    _result.flow = flow;
  }
  if (authorizationUrl != null) {
    _result.authorizationUrl = authorizationUrl;
  }
  if (tokenUrl != null) {
    _result.tokenUrl = tokenUrl;
  }
  if (scopes != null) {
    _result.scopes = scopes;
  }
  if (extensions != null) {
    _result.extensions.addAll(extensions);
  }
  return _result;
}