Service constructor

Service({
  1. String? name,
  2. String? title,
  3. Iterable<Api>? apis,
  4. Iterable<Type>? types,
  5. Iterable<Enum>? enums,
  6. Documentation? documentation,
  7. Backend? backend,
  8. Http? http,
  9. Quota? quota,
  10. Authentication? authentication,
  11. Context? context,
  12. Usage? usage,
  13. Iterable<Endpoint>? endpoints,
  14. UInt32Value? configVersion,
  15. Control? control,
  16. String? producerProjectId,
  17. Iterable<LogDescriptor>? logs,
  18. Iterable<MetricDescriptor>? metrics,
  19. Iterable<MonitoredResourceDescriptor>? monitoredResources,
  20. Billing? billing,
  21. Logging? logging,
  22. Monitoring? monitoring,
  23. SystemParameters? systemParameters,
  24. String? id,
  25. SourceInfo? sourceInfo,
})

Implementation

factory Service({
  $core.String? name,
  $core.String? title,
  $core.Iterable<$9.Api>? apis,
  $core.Iterable<$8.Type>? types,
  $core.Iterable<$8.Enum>? enums,
  $10.Documentation? documentation,
  $11.Backend? backend,
  $0.Http? http,
  $12.Quota? quota,
  $13.Authentication? authentication,
  $14.Context? context,
  $15.Usage? usage,
  $core.Iterable<$16.Endpoint>? endpoints,
  $17.UInt32Value? configVersion,
  $18.Control? control,
  $core.String? producerProjectId,
  $core.Iterable<$19.LogDescriptor>? logs,
  $core.Iterable<$20.MetricDescriptor>? metrics,
  $core.Iterable<$21.MonitoredResourceDescriptor>? monitoredResources,
  $22.Billing? billing,
  $23.Logging? logging,
  $24.Monitoring? monitoring,
  $25.SystemParameters? systemParameters,
  $core.String? id,
  $26.SourceInfo? sourceInfo,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (title != null) {
    _result.title = title;
  }
  if (apis != null) {
    _result.apis.addAll(apis);
  }
  if (types != null) {
    _result.types.addAll(types);
  }
  if (enums != null) {
    _result.enums.addAll(enums);
  }
  if (documentation != null) {
    _result.documentation = documentation;
  }
  if (backend != null) {
    _result.backend = backend;
  }
  if (http != null) {
    _result.http = http;
  }
  if (quota != null) {
    _result.quota = quota;
  }
  if (authentication != null) {
    _result.authentication = authentication;
  }
  if (context != null) {
    _result.context = context;
  }
  if (usage != null) {
    _result.usage = usage;
  }
  if (endpoints != null) {
    _result.endpoints.addAll(endpoints);
  }
  if (configVersion != null) {
    _result.configVersion = configVersion;
  }
  if (control != null) {
    _result.control = control;
  }
  if (producerProjectId != null) {
    _result.producerProjectId = producerProjectId;
  }
  if (logs != null) {
    _result.logs.addAll(logs);
  }
  if (metrics != null) {
    _result.metrics.addAll(metrics);
  }
  if (monitoredResources != null) {
    _result.monitoredResources.addAll(monitoredResources);
  }
  if (billing != null) {
    _result.billing = billing;
  }
  if (logging != null) {
    _result.logging = logging;
  }
  if (monitoring != null) {
    _result.monitoring = monitoring;
  }
  if (systemParameters != null) {
    _result.systemParameters = systemParameters;
  }
  if (id != null) {
    _result.id = id;
  }
  if (sourceInfo != null) {
    _result.sourceInfo = sourceInfo;
  }
  return _result;
}