# `DIDDocument`

A class in `fastatp.did.document` ([source](https://github.com/jacoblapenna/fastatp/blob/main/fastatp/did/document.py#L68)).

Based on `BaseModel`.

## Attributes

- `model_config`
- `context: list[str]`
- `id: str`
- `also_known_as: list[str]`
- `verification_method: list[VerificationMethod]`
- `rotation_keys: list[str]`
- `service: list[Service]`

## Methods

### `get_verification_method`

```python
get_verification_method(kid: str | None = None) -> VerificationMethod
```

Find the verification method matching `kid` (or the single default).

`kid` may be a full URI (`did:...#frag`) or a bare fragment
(`#frag` / `frag`); both match against the method ids.

### `to_json_dict`

```python
to_json_dict() -> dict[str, Any]
```

### `from_json_dict`

```python
from_json_dict(data: Any) -> DIDDocument
```
