ServiceConfig constructor

ServiceConfig({
  1. String? name,
  2. String? namespace,
  3. String? type,
  4. Struct? attributes,
  5. Iterable<String>? dependsOn,
  6. String? model,
  7. String? api,
  8. Iterable<ResourceLevelServiceConfig>? serviceConfigs,
  9. LogConfiguration? logConfiguration,
})

Implementation

factory ServiceConfig({
  $core.String? name,
  $core.String? namespace,
  $core.String? type,
  $43.Struct? attributes,
  $core.Iterable<$core.String>? dependsOn,
  $core.String? model,
  $core.String? api,
  $core.Iterable<ResourceLevelServiceConfig>? serviceConfigs,
  LogConfiguration? logConfiguration,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (namespace != null) {
    $result.namespace = namespace;
  }
  if (type != null) {
    $result.type = type;
  }
  if (attributes != null) {
    $result.attributes = attributes;
  }
  if (dependsOn != null) {
    $result.dependsOn.addAll(dependsOn);
  }
  if (model != null) {
    $result.model = model;
  }
  if (api != null) {
    $result.api = api;
  }
  if (serviceConfigs != null) {
    $result.serviceConfigs.addAll(serviceConfigs);
  }
  if (logConfiguration != null) {
    $result.logConfiguration = logConfiguration;
  }
  return $result;
}