ModuleConfig constructor

ModuleConfig({
  1. String? name,
  2. String? path,
  3. String? logLevel,
  4. String? type,
  5. String? moduleId,
  6. Map<String, String>? env,
  7. AppValidationStatus? status,
  8. Duration? firstRunTimeout,
})

Implementation

factory ModuleConfig({
  $core.String? name,
  $core.String? path,
  $core.String? logLevel,
  $core.String? type,
  $core.String? moduleId,
  $core.Map<$core.String, $core.String>? env,
  AppValidationStatus? status,
  $42.Duration? firstRunTimeout,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (path != null) {
    $result.path = path;
  }
  if (logLevel != null) {
    $result.logLevel = logLevel;
  }
  if (type != null) {
    $result.type = type;
  }
  if (moduleId != null) {
    $result.moduleId = moduleId;
  }
  if (env != null) {
    $result.env.addAll(env);
  }
  if (status != null) {
    $result.status = status;
  }
  if (firstRunTimeout != null) {
    $result.firstRunTimeout = firstRunTimeout;
  }
  return $result;
}