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<$33.Api>? apis,
  $core.Iterable<$32.Type>? types,
  $core.Iterable<$32.Enum>? enums,
  $34.Documentation? documentation,
  $35.Backend? backend,
  $24.Http? http,
  $36.Quota? quota,
  $37.Authentication? authentication,
  $38.Context? context,
  $39.Usage? usage,
  $core.Iterable<$40.Endpoint>? endpoints,
  $41.UInt32Value? configVersion,
  $42.Control? control,
  $core.String? producerProjectId,
  $core.Iterable<$43.LogDescriptor>? logs,
  $core.Iterable<$44.MetricDescriptor>? metrics,
  $core.Iterable<$45.MonitoredResourceDescriptor>? monitoredResources,
  $46.Billing? billing,
  $47.Logging? logging,
  $48.Monitoring? monitoring,
  $49.SystemParameters? systemParameters,
  $core.String? id,
  $50.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;
}