Info constructor

Info({
  1. String? title,
  2. String? description,
  3. String? termsOfService,
  4. Contact? contact,
  5. License? license,
  6. String? version,
  7. Map<String, Value>? extensions,
})

Implementation

factory Info({
  $core.String? title,
  $core.String? description,
  $core.String? termsOfService,
  Contact? contact,
  License? license,
  $core.String? version,
  $core.Map<$core.String, $3.Value>? extensions,
}) {
  final _result = create();
  if (title != null) {
    _result.title = title;
  }
  if (description != null) {
    _result.description = description;
  }
  if (termsOfService != null) {
    _result.termsOfService = termsOfService;
  }
  if (contact != null) {
    _result.contact = contact;
  }
  if (license != null) {
    _result.license = license;
  }
  if (version != null) {
    _result.version = version;
  }
  if (extensions != null) {
    _result.extensions.addAll(extensions);
  }
  return _result;
}