From 262ab0ec3fc7eaf95ef8ea2bdd2bf1095d61ffb1 Mon Sep 17 00:00:00 2001 From: Brad Haan Date: Mon, 20 May 2024 17:28:09 -0600 Subject: [PATCH] add trackers removed to main data dto --- lib/src/v2/sync/dto/main_data.dart | 4 ++++ lib/src/v2/sync/dto/main_data.g.dart | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/src/v2/sync/dto/main_data.dart b/lib/src/v2/sync/dto/main_data.dart index 3081a0a..dc96ffd 100644 --- a/lib/src/v2/sync/dto/main_data.dart +++ b/lib/src/v2/sync/dto/main_data.dart @@ -18,6 +18,7 @@ class MainData { this.tagsRemoved, this.serverState, this.trackers, + this.trackersRemoved, }); factory MainData.fromJson(Map json) => @@ -62,5 +63,8 @@ class MainData { @JsonKey(name: 'trackers') final Map>? trackers; + @JsonKey(name: 'trackers_removed') + final List? trackersRemoved; + Map toJson() => _$MainDataToJson(this); } diff --git a/lib/src/v2/sync/dto/main_data.g.dart b/lib/src/v2/sync/dto/main_data.g.dart index b5b01e4..710d39d 100644 --- a/lib/src/v2/sync/dto/main_data.g.dart +++ b/lib/src/v2/sync/dto/main_data.g.dart @@ -32,6 +32,9 @@ MainData _$MainDataFromJson(Map json) => MainData( (k, e) => MapEntry(k, (e as List).map((e) => e as String).toList()), ), + trackersRemoved: (json['trackers_removed'] as List?) + ?.map((e) => e as String) + .toList(), ); Map _$MainDataToJson(MainData instance) { @@ -53,5 +56,6 @@ Map _$MainDataToJson(MainData instance) { writeNotNull('tags_removed', instance.tagsRemoved); writeNotNull('server_state', instance.serverState); writeNotNull('trackers', instance.trackers); + writeNotNull('trackers_removed', instance.trackersRemoved); return val; }