Skip to content

Commit

Permalink
Merge pull request #18 from bhaan/trackers-removed
Browse files Browse the repository at this point in the history
Add trackers removed to main data dto
  • Loading branch information
yosemiteyss authored May 21, 2024
2 parents 254c455 + 262ab0e commit 6e4cda4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/v2/sync/dto/main_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class MainData {
this.tagsRemoved,
this.serverState,
this.trackers,
this.trackersRemoved,
});

factory MainData.fromJson(Map<String, dynamic> json) =>
Expand Down Expand Up @@ -62,5 +63,8 @@ class MainData {
@JsonKey(name: 'trackers')
final Map<String, List<String>>? trackers;

@JsonKey(name: 'trackers_removed')
final List<String>? trackersRemoved;

Map<String, dynamic> toJson() => _$MainDataToJson(this);
}
4 changes: 4 additions & 0 deletions lib/src/v2/sync/dto/main_data.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e4cda4

Please sign in to comment.