ComponentConfig constructor

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

Implementation

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