This is my input JSON response

```
{
   "permissions": {
            "user": [
                "Add",
                "Update",
                "Delete"
            ],
            "Product": [
                "Read",
                "Create"
            ]
        }
}

```

I'm trying to create the DTO class for the same. So far I've created a set of Enum with the available values 

**PermissionAction Enum**

```
 public enum PermissionAction
    {
        Add,
        Update,
        Read,
        Delete,
        Create
    }

```

**PermissionItem Enum**

```
public enum PermissionItem
{
    User,
    Product
}

```

How to create a DTO Class for the given JSON Response with the available Enums?

I tired like differently like

```
public class Permissions
{

    public List<PermissionAction> User { get; set; }

    public List<PermissionItem> Product { get; set; }
}

```

Which is wrong.

Since the response may vary dynamically. What I mean that is sometimes a `User` List will not available and sometimes `Product` is not available.

Like,

```
{
   "permissions": {
            "user": [
                "Add",
                "Update",
                "Delete"
            ]
      }
}

```

I need to support those kinds of response also with my DTO Class.

UPDATE 1:

*I think the JSON which I posted above is confusing others. Sorry for that confusion. Actually, my permissions JSON Object is contained List of Permission Item(s) in which each Permission Items itself again having a List of Permission Actions.*