import 'package:freezed_annotation/freezed_annotation.dart'; import 'service_scan_info.dart'; part 'scan_result.freezed.dart'; part 'scan_result.g.dart'; /// Mirrors `models.ScanResult`, returned by `POST /node/scan`. @freezed sealed class ScanResult with _$ScanResult { const factory ScanResult({ @JsonKey(name: 'scanned_paths') @Default([]) List scannedPaths, @Default(0) int found, @Default([]) List created, @Default([]) List updated, @Default([]) List errors, }) = _ScanResult; factory ScanResult.fromJson(Map json) => _$ScanResultFromJson(json); }