Skip to content

Commit

Permalink
chore: generated code for commit ae20258c. [skip ci]
Browse files Browse the repository at this point in the history
algolia/api-clients-automation@ae20258

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Jan 9, 2024
1 parent baa569b commit 5aed6be
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,31 @@ final class SearchForFacetValuesResponse {
/// Returns a new [SearchForFacetValuesResponse] instance.
const SearchForFacetValuesResponse({
required this.facetHits,
required this.exhaustiveFacetsCount,
this.processingTimeMS,
});

@JsonKey(name: r'facetHits')
final List<FacetHits> facetHits;

/// See the `facetsCount` field of the `exhaustive` object in the response.
@Deprecated('exhaustiveFacetsCount has been deprecated')
@JsonKey(name: r'exhaustiveFacetsCount')
final bool exhaustiveFacetsCount;

/// Time the server took to process the request, in milliseconds.
@JsonKey(name: r'processingTimeMS')
final int? processingTimeMS;

@override
bool operator ==(Object other) =>
identical(this, other) ||
other is SearchForFacetValuesResponse && other.facetHits == facetHits;
other is SearchForFacetValuesResponse &&
other.facetHits == facetHits &&
other.processingTimeMS == processingTimeMS;

@override
int get hashCode => facetHits.hashCode;
int get hashCode => facetHits.hashCode + processingTimeMS.hashCode;

factory SearchForFacetValuesResponse.fromJson(Map<String, dynamic> json) =>
_$SearchForFacetValuesResponseFromJson(json);
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,31 @@ final class SearchForFacetValuesResponse {
/// Returns a new [SearchForFacetValuesResponse] instance.
const SearchForFacetValuesResponse({
required this.facetHits,
required this.exhaustiveFacetsCount,
this.processingTimeMS,
});

@JsonKey(name: r'facetHits')
final List<FacetHits> facetHits;

/// See the `facetsCount` field of the `exhaustive` object in the response.
@Deprecated('exhaustiveFacetsCount has been deprecated')
@JsonKey(name: r'exhaustiveFacetsCount')
final bool exhaustiveFacetsCount;

/// Time the server took to process the request, in milliseconds.
@JsonKey(name: r'processingTimeMS')
final int? processingTimeMS;

@override
bool operator ==(Object other) =>
identical(this, other) ||
other is SearchForFacetValuesResponse && other.facetHits == facetHits;
other is SearchForFacetValuesResponse &&
other.facetHits == facetHits &&
other.processingTimeMS == processingTimeMS;

@override
int get hashCode => facetHits.hashCode;
int get hashCode => facetHits.hashCode + processingTimeMS.hashCode;

factory SearchForFacetValuesResponse.fromJson(Map<String, dynamic> json) =>
_$SearchForFacetValuesResponseFromJson(json);
Expand Down

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

0 comments on commit 5aed6be

Please sign in to comment.