class AiModelInfo { final String id; final String name; final String description; final String model; final String path; final String trigger; final String access; const AiModelInfo({ required this.id, required this.name, required this.description, required this.model, required this.path, required this.trigger, required this.access, }); factory AiModelInfo.fromJson(Map json) => AiModelInfo( id: (json['id'] ?? '').toString(), name: (json['name'] ?? '').toString(), description: (json['description'] ?? '').toString(), model: (json['model'] ?? '').toString(), path: (json['path'] ?? '').toString(), trigger: (json['trigger'] ?? '').toString(), access: (json['access'] ?? '').toString(), ); }