Add base model and specific implementations for Vae, Lora, and Checkpoint; introduce exception handling and event types
This commit is contained in:
13
lib/src/models/lora.dart
Normal file
13
lib/src/models/lora.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import 'base_model.dart';
|
||||
|
||||
class Lora extends BaseModel {
|
||||
Lora({required String name, required int pathIndex})
|
||||
: super(name: name, pathIndex: pathIndex);
|
||||
|
||||
factory Lora.fromJson(Map<String, dynamic> json) {
|
||||
return Lora(
|
||||
name: json['name'] as String,
|
||||
pathIndex: json['pathIndex'] as int,
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user