LoRAAdapterInfo constructor

LoRAAdapterInfo({
  1. String? adapterId,
  2. String? adapterPath,
  3. double? scale,
  4. bool? applied,
  5. String? errorMessage,
  6. int? errorCode,
  7. Int64? loadedAtMs,
})

Implementation

factory LoRAAdapterInfo({
  $core.String? adapterId,
  $core.String? adapterPath,
  $core.double? scale,
  $core.bool? applied,
  $core.String? errorMessage,
  $core.int? errorCode,
  $fixnum.Int64? loadedAtMs,
}) {
  final result = create();
  if (adapterId != null) result.adapterId = adapterId;
  if (adapterPath != null) result.adapterPath = adapterPath;
  if (scale != null) result.scale = scale;
  if (applied != null) result.applied = applied;
  if (errorMessage != null) result.errorMessage = errorMessage;
  if (errorCode != null) result.errorCode = errorCode;
  if (loadedAtMs != null) result.loadedAtMs = loadedAtMs;
  return result;
}