# Firebase.AI.GenerateObjectResponse\< T \>

The model's response to a generate object request.

## Summary

The object is deserialized using reflection. If you would like to implement your own deserialization method, have your class T implement the `https://firebase.google.com/docs/reference/unity/interface/firebase/a-i/i-firebase-deserializable#interface_firebase_1_1_a_i_1_1_i_firebase_deserializable` interface.

<br />

Details Template Parameters `T` The type of the underlying Result

| ### Properties ||
|---|---|
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/generate-object-response-t-#struct_firebase_1_1_a_i_1_1_generate_object_response_3_01_t_01_4_1a71fa1591dd79427417168487fbe43499` | `readonly https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/generate-content-response#struct_firebase_1_1_a_i_1_1_generate_content_response` The underlying `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/generate-content-response#struct_firebase_1_1_a_i_1_1_generate_content_response` returned from the Model. |

| ### Public attributes ||
|---|---|
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/generate-object-response-t-#struct_firebase_1_1_a_i_1_1_generate_object_response_3_01_t_01_4_1a0c722a07cfdc56c92f1ef472b0aba681 => GetResult(0)` | `T` The deserialized object from the first [Candidate](https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/candidate#struct_firebase_1_1_a_i_1_1_candidate) response. |

| ### Public functions ||
|---|---|
| `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/generate-object-response-t-#struct_firebase_1_1_a_i_1_1_generate_object_response_3_01_t_01_4_1aff8770a5749dbe201829a567ade30b49(int candidateIndex)` | `T` Parse the resulting object from the requested candidate response. |

## Properties

### Response

```c#
readonly GenerateContentResponse Firebase::AI::GenerateObjectResponse< T >::Response
```
The underlying `https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/generate-content-response#struct_firebase_1_1_a_i_1_1_generate_content_response` returned from the Model.

## Public attributes

### Result

```c#
T Firebase::AI::GenerateObjectResponse< T >::Result => GetResult(0)
```
The deserialized object from the first [Candidate](https://firebase.google.com/docs/reference/unity/struct/firebase/a-i/candidate#struct_firebase_1_1_a_i_1_1_candidate) response.

## Public functions

### GetResult

```c#
T Firebase::AI::GenerateObjectResponse< T >::GetResult(
  int candidateIndex
)
```
Parse the resulting object from the requested candidate response.

<br />

Details Parameters `candidateIndex` The index of the candidate to parse. Note that getting multiple candidates requires configuration settings. **Returns** The deserialized object.