# Package architecture

> Package architecture - Instantiate an object of this class using the data directly from the server,
> meaning that the keys may have the wrong camel casing

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-07-27T18:44:30.506975+00:00` (UTC).

## Primary page

- [Package architecture](https://docs.datarobot.com/ja/docs/api/reference/sdk/api-object.html.md): Full documentation for this topic (Markdown sidecar).

## Sections on this page

- [APIObject](https://docs.datarobot.com/ja/docs/api/reference/sdk/api-object.html.md#datarobot.models.api_object.APIObject): In-page section heading.
- [from_data()](https://docs.datarobot.com/ja/docs/api/reference/sdk/api-object.html.md#datarobot.models.api_object.APIObject.from_data): In-page section heading.
- [from_server_data()](https://docs.datarobot.com/ja/docs/api/reference/sdk/api-object.html.md#datarobot.models.api_object.APIObject.from_server_data): In-page section heading.

## Documentation content

### APIObject

#### from_data()

Instantiate an object of this class using a dict.

Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| data | dict | Correctly snake_cased keys and their values. |

Return type: `TypeVar` ( `T`, bound= APIObject)

#### from_server_data()

Instantiate an object of this class using the data directly from the server,
meaning that the keys may have the wrong camel casing

Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| data | dict | The directly translated dict of JSON from the server. No casing fixes have taken place |
| keep_attrs | iterable | List, set or tuple of the dotted namespace notations for attributes to keep within the object structure even if their values are None |

Return type: `TypeVar` ( `T`, bound= APIObject)
