diff --git a/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.dart b/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.dart index e8e4e790..ef12ed09 100644 --- a/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.dart +++ b/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.dart @@ -19,7 +19,6 @@ class PatchArtifact { required this.size, required this.url, required this.createdAt, - required this.updatedAt, }); /// Converts a Map to a [PatchArtifact] @@ -52,7 +51,4 @@ class PatchArtifact { /// The date and time the artifact was created. final DateTime createdAt; - - /// The date and time the artifact was last updated. - final DateTime updatedAt; } diff --git a/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.g.dart b/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.g.dart index e39992f2..cdf689ea 100644 --- a/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.g.dart +++ b/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.g.dart @@ -24,16 +24,10 @@ PatchArtifact _$PatchArtifactFromJson(Map json) => url: $checkedConvert('url', (v) => v as String), createdAt: $checkedConvert('created_at', (v) => DateTime.parse(v as String)), - updatedAt: - $checkedConvert('updated_at', (v) => DateTime.parse(v as String)), ); return val; }, - fieldKeyMap: const { - 'patchId': 'patch_id', - 'createdAt': 'created_at', - 'updatedAt': 'updated_at' - }, + fieldKeyMap: const {'patchId': 'patch_id', 'createdAt': 'created_at'}, ); Map _$PatchArtifactToJson(PatchArtifact instance) => @@ -46,7 +40,6 @@ Map _$PatchArtifactToJson(PatchArtifact instance) => 'size': instance.size, 'url': instance.url, 'created_at': instance.createdAt.toIso8601String(), - 'updated_at': instance.updatedAt.toIso8601String(), }; const _$ReleasePlatformEnumMap = { diff --git a/packages/shorebird_code_push_protocol/test/src/messages/get_release_patches/get_release_patches_response_test.dart b/packages/shorebird_code_push_protocol/test/src/messages/get_release_patches/get_release_patches_response_test.dart index 8e175ec3..c93fde83 100644 --- a/packages/shorebird_code_push_protocol/test/src/messages/get_release_patches/get_release_patches_response_test.dart +++ b/packages/shorebird_code_push_protocol/test/src/messages/get_release_patches/get_release_patches_response_test.dart @@ -16,7 +16,6 @@ void main() { size: 42, hash: 'sha256:1234567890', createdAt: DateTime(2023), - updatedAt: DateTime(2023), ), PatchArtifact( id: 2, @@ -27,7 +26,6 @@ void main() { size: 42, hash: 'sha256:1234567890', createdAt: DateTime(2023), - updatedAt: DateTime(2023), ), ], 2: [ @@ -40,7 +38,6 @@ void main() { size: 42, hash: 'sha256:1234567890', createdAt: DateTime(2023), - updatedAt: DateTime(2023), ), PatchArtifact( id: 4, @@ -51,7 +48,6 @@ void main() { size: 42, hash: 'sha256:1234567890', createdAt: DateTime(2023), - updatedAt: DateTime(2023), ), ], }, diff --git a/packages/shorebird_code_push_protocol/test/src/models/patch_artifact_test.dart b/packages/shorebird_code_push_protocol/test/src/models/patch_artifact_test.dart index 0116cfbe..1e5e72e0 100644 --- a/packages/shorebird_code_push_protocol/test/src/models/patch_artifact_test.dart +++ b/packages/shorebird_code_push_protocol/test/src/models/patch_artifact_test.dart @@ -13,7 +13,6 @@ void main() { size: 42, hash: 'sha256:1234567890', createdAt: DateTime(2023), - updatedAt: DateTime(2023), ); expect( PatchArtifact.fromJson(artifact.toJson()).toJson(),