Add base model and specific implementations for Vae, Lora, and Checkpoint; introduce exception handling and event types

This commit is contained in:
2025-03-20 14:50:51 +00:00
parent 0b2769310b
commit 813e6f334e
10 changed files with 374 additions and 149 deletions

13
lib/src/models/lora.dart Normal file
View 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,
);
}
}