## DataModel


A data model for holding and validating data.


Usage


``` python
DataModel(data)
```


## Parameters


`data: dict`  
The data to model.


## Examples

``` python
>>> m = DataModel({"key": "value"})
>>> m.validate()
True
```


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Initialize the data model. |
| [validate()](#validate) | Validate the data model. |

------------------------------------------------------------------------


#### \_\_init\_\_()


Initialize the data model.


Usage


``` python
__init__(data)
```


##### Parameters


`data: dict`  
The data to model.


------------------------------------------------------------------------


#### validate()


Validate the data model.


Usage


``` python
validate()
```


##### Returns


`bool`  
True if the data is valid.
