LoraCompatibilityResult constructor

LoraCompatibilityResult({
  1. bool? isCompatible,
  2. String? errorMessage,
  3. String? baseModelRequired,
  4. Iterable<String>? warnings,
  5. int? errorCode,
})

Implementation

factory LoraCompatibilityResult({
  $core.bool? isCompatible,
  $core.String? errorMessage,
  $core.String? baseModelRequired,
  $core.Iterable<$core.String>? warnings,
  $core.int? errorCode,
}) {
  final result = create();
  if (isCompatible != null) result.isCompatible = isCompatible;
  if (errorMessage != null) result.errorMessage = errorMessage;
  if (baseModelRequired != null) result.baseModelRequired = baseModelRequired;
  if (warnings != null) result.warnings.addAll(warnings);
  if (errorCode != null) result.errorCode = errorCode;
  return result;
}