feat(code_push_protocol): make patch check request equatable (#3456)

This commit is contained in:
Bryan Oltman
2026-01-06 15:32:16 -05:00
committed by GitHub
parent e6701242d7
commit 5ec85be8d5
@@ -1,3 +1,4 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:shorebird_code_push_protocol/shorebird_code_push_protocol.dart';
@@ -7,7 +8,7 @@ part 'patch_check_request.g.dart';
/// The request body for POST /api/v1/patches/check
/// {@endtemplate}
@JsonSerializable()
class PatchCheckRequest {
class PatchCheckRequest extends Equatable {
/// {@macro patch_check_request}
const PatchCheckRequest({
required this.releaseVersion,
@@ -49,4 +50,15 @@ class PatchCheckRequest {
/// The channel of the app.
final String channel;
@override
List<Object?> get props => [
releaseVersion,
patchNumber,
patchHash,
platform,
arch,
appId,
channel,
];
}