Skip to content

Commit

Permalink
Actually fix PanaReport model
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Nov 21, 2023
1 parent 931fa8d commit 35c52eb
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 204 deletions.
22 changes: 10 additions & 12 deletions lib/src/models/package_score_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class PackageScoreCard with _$PackageScoreCard {
required String packageVersion,
required String runtimeVersion,
required DateTime updated,
DartdocReport? dartdocReport,
PanaReport? panaReport,
required DartdocReport dartdocReport,
required PanaReport panaReport,
required String taskStatus,
}) = _PackageScoreCard;

Expand All @@ -54,18 +54,16 @@ class DartdocReport with _$DartdocReport {
@freezed
class PanaReport with _$PanaReport {
const factory PanaReport({
required DateTime timestamp,
required PanaRuntimeInfo panaRuntimeInfo,
DateTime? timestamp,
PanaRuntimeInfo? panaRuntimeInfo,
required String reportStatus,
required List<String> derivedTags,
required List<String> allDependencies,
required List<License> licenses,
// TODO: Make an object for this
required Map<String, dynamic> report,
// TODO: Make an object for this
required Map<String, dynamic> result,
required Map<String, String> screenshots,
required List<String> urlProblems,
List<String>? allDependencies,
List<License>? licenses,
Map<String, dynamic>? report,
Map<String, dynamic>? result,
List<Map<String, String>>? screenshots,
List<String>? urlProblems,
}) = _PanaReport;

/// From json
Expand Down
Loading

0 comments on commit 35c52eb

Please sign in to comment.