> For the complete documentation index, see [llms.txt](https://aerocode.gitbook.io/tynamo/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aerocode.gitbook.io/tynamo/tynamo-1/mapper/deformation-api/deformationentityarray.md).

# deformationList

### Spec

```typescript
deformationList<TTarget>(
    target: { L: ListAttributeValue }, 
    TClass: ClassCapture<TTarget>
): TTarget[]
```

Convert (L) to EntityArray.L.

### Input

| Name             | Type                        | Information                            |
| ---------------- | --------------------------- | -------------------------------------- |
| entityArrayValue | `{ L: ListAttributeValue }` | AttributeValue(L) to convert to array. |
| TClass           | `ClassCapture<TTarget>`     | Reference of `TTarget` .               |

### Example

```typescript
const entity: Cat[] = Mapper.deformationEntityArray(
    {
        L: [
            { M: { id: { N: "666" }, name: { S: "garfield" } } },
            { M: { id: { N: "777" }, name: { S: "doreamong" } } }
        ]
    },
    Cat
);
```

It will be deformationed as,

```typescript
[
    Cat {
        "id": 666,
        "name": "garfield"
    },
    Cat {
        "id": 777,
        "name": "doreamong"
    }
]
```
