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<$7.Api>? apis,
  $core.Iterable<$8.Type>? types,
  $core.Iterable<$8.Enum>? enums,
  $9.Documentation? documentation,
  $10.Backend? backend,
  $5.Http? http,
  $11.Quota? quota,
  $12.Authentication? authentication,
  $13.Context? context,
  $14.Usage? usage,
  $core.Iterable<$15.Endpoint>? endpoints,
  $16.UInt32Value? configVersion,
  $17.Control? control,
  $core.String? producerProjectId,
  $core.Iterable<$18.LogDescriptor>? logs,
  $core.Iterable<$19.MetricDescriptor>? metrics,
  $core.Iterable<$20.MonitoredResourceDescriptor>? monitoredResources,
  $21.Billing? billing,
  $22.Logging? logging,
  $23.Monitoring? monitoring,
  $24.SystemParameters? systemParameters,
  $core.String? id,
  $25.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;
}