LoraAdapterCatalogEntry constructor

LoraAdapterCatalogEntry({
  1. String? id,
  2. String? name,
  3. Iterable<String>? compatibleModels,
  4. double? defaultScale,
  5. Iterable<String>? tags,
  6. String? localPath,
})

Implementation

factory LoraAdapterCatalogEntry({
  $core.String? id,
  $core.String? name,
  $core.Iterable<$core.String>? compatibleModels,
  $core.double? defaultScale,
  $core.Iterable<$core.String>? tags,
  $core.String? localPath,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (name != null) result.name = name;
  if (compatibleModels != null)
    result.compatibleModels.addAll(compatibleModels);
  if (defaultScale != null) result.defaultScale = defaultScale;
  if (tags != null) result.tags.addAll(tags);
  if (localPath != null) result.localPath = localPath;
  return result;
}