Skip to content

Commit 91b8080

Browse files
algolia-botmillotp
andcommitted
fix(specs): getObject return object (generated)
algolia/api-clients-automation#3446 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 1e7b8b2 commit 91b8080

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/client_search/lib/src/api/search_client.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ final class SearchClient implements ApiClient {
10511051
/// * [objectID] Unique record identifier.
10521052
/// * [attributesToRetrieve] Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved. Attributes included in `unretrievableAttributes` won't be retrieved unless the request is authenticated with the admin API key.
10531053
/// * [requestOptions] additional request configuration.
1054-
Future<Map<String, String>> getObject({
1054+
Future<Object> getObject({
10551055
required String indexName,
10561056
required String objectID,
10571057
List<String>? attributesToRetrieve,
@@ -1081,9 +1081,9 @@ final class SearchClient implements ApiClient {
10811081
request: request,
10821082
options: requestOptions,
10831083
);
1084-
return deserialize<Map<String, String>, String>(
1084+
return deserialize<Object, Object>(
10851085
response,
1086-
'Map<String, String>',
1086+
'Object',
10871087
growable: true,
10881088
);
10891089
}

0 commit comments

Comments
 (0)