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