Skip to content

Commit e5ce693

Browse files
algolia-botkombucha
andcommitted
feat(specs): add missing message attribute to GetObjectsResponse [skip-bc] (generated)
algolia/api-clients-automation#4029 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Vincent Lemeunier <[email protected]>
1 parent f673833 commit e5ce693

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

packages/client_search/lib/src/model/get_objects_response.dart

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,27 @@ part 'get_objects_response.g.dart';
99
final class GetObjectsResponse {
1010
/// Returns a new [GetObjectsResponse] instance.
1111
const GetObjectsResponse({
12+
this.message,
1213
required this.results,
1314
});
1415

16+
/// An optional status message.
17+
@JsonKey(name: r'message')
18+
final String? message;
19+
1520
/// Retrieved records.
1621
@JsonKey(name: r'results')
1722
final List<Object> results;
1823

1924
@override
2025
bool operator ==(Object other) =>
2126
identical(this, other) ||
22-
other is GetObjectsResponse && other.results == results;
27+
other is GetObjectsResponse &&
28+
other.message == message &&
29+
other.results == results;
2330

2431
@override
25-
int get hashCode => results.hashCode;
32+
int get hashCode => message.hashCode + results.hashCode;
2633

2734
factory GetObjectsResponse.fromJson(Map<String, dynamic> json) =>
2835
_$GetObjectsResponseFromJson(json);

packages/client_search/lib/src/model/get_objects_response.g.dart

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)