DiscoveredModel constructor

DiscoveredModel({
  1. String? modelId,
  2. String? localPath,
  3. bool? matchedRegistry,
  4. ModelInfo? model,
  5. Int64? sizeBytes,
  6. Iterable<String>? warnings,
})

Implementation

factory DiscoveredModel({
  $core.String? modelId,
  $core.String? localPath,
  $core.bool? matchedRegistry,
  ModelInfo? model,
  $fixnum.Int64? sizeBytes,
  $core.Iterable<$core.String>? warnings,
}) {
  final result = create();
  if (modelId != null) result.modelId = modelId;
  if (localPath != null) result.localPath = localPath;
  if (matchedRegistry != null) result.matchedRegistry = matchedRegistry;
  if (model != null) result.model = model;
  if (sizeBytes != null) result.sizeBytes = sizeBytes;
  if (warnings != null) result.warnings.addAll(warnings);
  return result;
}