Response constructor

Response({
  1. String? description,
  2. Schema? schema,
  3. Map<String, Header>? headers,
  4. Map<String, String>? examples,
  5. Map<String, Value>? extensions,
})

Implementation

factory Response({
  $core.String? description,
  Schema? schema,
  $core.Map<$core.String, Header>? headers,
  $core.Map<$core.String, $core.String>? examples,
  $core.Map<$core.String, $3.Value>? extensions,
}) {
  final _result = create();
  if (description != null) {
    _result.description = description;
  }
  if (schema != null) {
    _result.schema = schema;
  }
  if (headers != null) {
    _result.headers.addAll(headers);
  }
  if (examples != null) {
    _result.examples.addAll(examples);
  }
  if (extensions != null) {
    _result.extensions.addAll(extensions);
  }
  return _result;
}