ModelInfo constructor

ModelInfo({
  1. String? id,
  2. String? name,
  3. ModelCategory? category,
  4. ModelFormat? format,
  5. InferenceFramework? framework,
  6. String? downloadUrl,
  7. String? localPath,
  8. Int64? downloadSizeBytes,
  9. int? contextLength,
  10. bool? supportsThinking,
  11. bool? supportsLora,
  12. ModelSource? source,
  13. Int64? createdAtUnixMs,
  14. Int64? updatedAtUnixMs,
  15. Int64? memoryRequiredBytes,
  16. String? checksumSha256,
  17. ThinkingTagPattern? thinkingPattern,
  18. ModelInfoMetadata? metadata,
  19. SingleFileArtifact? singleFile,
  20. ArchiveArtifact? archive,
  21. MultiFileArtifact? multiFile,
  22. String? customStrategyId,
  23. bool? builtIn,
  24. ModelArtifactType? artifactType,
  25. ExpectedModelFiles? expectedFiles,
  26. AccelerationPreference? accelerationPreference,
  27. RoutingPolicy? routingPolicy,
  28. ModelRuntimeCompatibility? compatibility,
  29. InferenceFramework? preferredFramework,
  30. ModelRegistryStatus? registryStatus,
  31. bool? isDownloaded,
  32. bool? isAvailable,
  33. Int64? lastUsedAtUnixMs,
  34. int? usageCount,
  35. bool? syncPending,
  36. String? statusMessage,
})

Implementation

factory ModelInfo({
  $core.String? id,
  $core.String? name,
  ModelCategory? category,
  ModelFormat? format,
  InferenceFramework? framework,
  $core.String? downloadUrl,
  $core.String? localPath,
  $fixnum.Int64? downloadSizeBytes,
  $core.int? contextLength,
  $core.bool? supportsThinking,
  $core.bool? supportsLora,
  ModelSource? source,
  $fixnum.Int64? createdAtUnixMs,
  $fixnum.Int64? updatedAtUnixMs,
  $fixnum.Int64? memoryRequiredBytes,
  $core.String? checksumSha256,
  $0.ThinkingTagPattern? thinkingPattern,
  ModelInfoMetadata? metadata,
  SingleFileArtifact? singleFile,
  ArchiveArtifact? archive,
  MultiFileArtifact? multiFile,
  $core.String? customStrategyId,
  $core.bool? builtIn,
  ModelArtifactType? artifactType,
  ExpectedModelFiles? expectedFiles,
  $1.AccelerationPreference? accelerationPreference,
  RoutingPolicy? routingPolicy,
  ModelRuntimeCompatibility? compatibility,
  InferenceFramework? preferredFramework,
  ModelRegistryStatus? registryStatus,
  $core.bool? isDownloaded,
  $core.bool? isAvailable,
  $fixnum.Int64? lastUsedAtUnixMs,
  $core.int? usageCount,
  $core.bool? syncPending,
  $core.String? statusMessage,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (name != null) result.name = name;
  if (category != null) result.category = category;
  if (format != null) result.format = format;
  if (framework != null) result.framework = framework;
  if (downloadUrl != null) result.downloadUrl = downloadUrl;
  if (localPath != null) result.localPath = localPath;
  if (downloadSizeBytes != null) result.downloadSizeBytes = downloadSizeBytes;
  if (contextLength != null) result.contextLength = contextLength;
  if (supportsThinking != null) result.supportsThinking = supportsThinking;
  if (supportsLora != null) result.supportsLora = supportsLora;
  if (source != null) result.source = source;
  if (createdAtUnixMs != null) result.createdAtUnixMs = createdAtUnixMs;
  if (updatedAtUnixMs != null) result.updatedAtUnixMs = updatedAtUnixMs;
  if (memoryRequiredBytes != null)
    result.memoryRequiredBytes = memoryRequiredBytes;
  if (checksumSha256 != null) result.checksumSha256 = checksumSha256;
  if (thinkingPattern != null) result.thinkingPattern = thinkingPattern;
  if (metadata != null) result.metadata = metadata;
  if (singleFile != null) result.singleFile = singleFile;
  if (archive != null) result.archive = archive;
  if (multiFile != null) result.multiFile = multiFile;
  if (customStrategyId != null) result.customStrategyId = customStrategyId;
  if (builtIn != null) result.builtIn = builtIn;
  if (artifactType != null) result.artifactType = artifactType;
  if (expectedFiles != null) result.expectedFiles = expectedFiles;
  if (accelerationPreference != null)
    result.accelerationPreference = accelerationPreference;
  if (routingPolicy != null) result.routingPolicy = routingPolicy;
  if (compatibility != null) result.compatibility = compatibility;
  if (preferredFramework != null)
    result.preferredFramework = preferredFramework;
  if (registryStatus != null) result.registryStatus = registryStatus;
  if (isDownloaded != null) result.isDownloaded = isDownloaded;
  if (isAvailable != null) result.isAvailable = isAvailable;
  if (lastUsedAtUnixMs != null) result.lastUsedAtUnixMs = lastUsedAtUnixMs;
  if (usageCount != null) result.usageCount = usageCount;
  if (syncPending != null) result.syncPending = syncPending;
  if (statusMessage != null) result.statusMessage = statusMessage;
  return result;
}