---
# System prepended metadata

title: Data Model - EdgeInsetsDirectional
tags: [Flutter-Data]

---

EdgeInsetsDirectional
---
If the `value` is a `String`, `double`, or `int` then this will parse the number and pass it to `EdgeInsetsDirectional.all`. It creates insets where all the offsets are `value`.
```json
{
    "padding": "30"
}
```
For creating insets with only the given `values`, padding may be a Map-like structure in the following JSON format:
```json
{
    "padding": {
        "start": 45,
        "top": "100",
        "end": 35.8,
        "bottom": "12.2"
    }
}
```

Properties are optional, thus following JSON format is also valid.

```json
{
    "padding": {
        "start": 19,
        "bottom": "22.2"  
    }
}
```