i have one aws cognito custom attribute called custom:events_permission and it will be something like this
[
{
"id":"48d258b7-8949-41z4-815a-f141487a6de1",
"name":"event name",
"user_id":"4eef6471-9a79-40r1-qw95-f22974f492d6",
"role":"exhibitor-admin",
"exhibitor_account_id":"42e812fe-f7ac-48fe-8a15-a0cb80c3ab59",
"permissions":[
"exh-manual:['view','edit','add']",
"exh-leads:['*']",
"exh-usr:['*']"
]
}
]
and i have a DTO object called UserDto:
public class UserDto
{
public string ExhibitorId { get; set; }
public string UserId { get; set; }
public string Type { get; set; }
public string TenantId { get; set; }
public string Role { get; set; }
public string Permissions { get; set; }
}
how can i use automapper to map this, ExhibitorId to the exhibitor_account_id and Permissions to permissions and so on.
UserDtousestringinstead ofList<string>type?