RegisterModelFromUrlRequest constructor

RegisterModelFromUrlRequest({
  1. String? url,
  2. String? name,
  3. InferenceFramework? framework,
  4. ModelCategory? category,
  5. ModelSource? source,
  6. Int64? memoryRequiredBytes,
  7. bool? supportsThinking,
  8. bool? supportsLora,
  9. ModelArtifactType? artifactType,
  10. int? contextLength,
  11. String? description,
  12. Int64? downloadSizeBytes,
  13. String? id,
})

Implementation

factory RegisterModelFromUrlRequest({
  $core.String? url,
  $core.String? name,
  InferenceFramework? framework,
  ModelCategory? category,
  ModelSource? source,
  $fixnum.Int64? memoryRequiredBytes,
  $core.bool? supportsThinking,
  $core.bool? supportsLora,
  ModelArtifactType? artifactType,
  $core.int? contextLength,
  $core.String? description,
  $fixnum.Int64? downloadSizeBytes,
  $core.String? id,
}) {
  final result = create();
  if (url != null) result.url = url;
  if (name != null) result.name = name;
  if (framework != null) result.framework = framework;
  if (category != null) result.category = category;
  if (source != null) result.source = source;
  if (memoryRequiredBytes != null)
    result.memoryRequiredBytes = memoryRequiredBytes;
  if (supportsThinking != null) result.supportsThinking = supportsThinking;
  if (supportsLora != null) result.supportsLora = supportsLora;
  if (artifactType != null) result.artifactType = artifactType;
  if (contextLength != null) result.contextLength = contextLength;
  if (description != null) result.description = description;
  if (downloadSizeBytes != null) result.downloadSizeBytes = downloadSizeBytes;
  if (id != null) result.id = id;
  return result;
}