diff --git a/algoliasearch/Models/Search/GetObjectsResponse.cs b/algoliasearch/Models/Search/GetObjectsResponse.cs index 9d78a2e8..790cf1d4 100644 --- a/algoliasearch/Models/Search/GetObjectsResponse.cs +++ b/algoliasearch/Models/Search/GetObjectsResponse.cs @@ -19,8 +19,15 @@ public partial class GetObjectsResponse /// /// Initializes a new instance of the GetObjectsResponse class. /// - public GetObjectsResponse() + [JsonConstructor] + public GetObjectsResponse() { } + /// + /// Initializes a new instance of the GetObjectsResponse class. + /// + /// Retrieved records. (required). + public GetObjectsResponse(List results) { + Results = results ?? throw new ArgumentNullException(nameof(results)); } ///