/// Result from `POST /api/quick-import`.
class QuickImportResult {
  final String markdown;
  final String source; // 'ica' | 'pdf' | 'image' | 'other'
  final String? imageUrl;

  const QuickImportResult({
    required this.markdown,
    required this.source,
    this.imageUrl,
  });

  factory QuickImportResult.fromJson(Map<String, dynamic> json) =>
      QuickImportResult(
        markdown: json['markdown'] as String? ?? '',
        source: json['source'] as String? ?? 'other',
        imageUrl: json['imageUrl'] as String?,
      );
}
