anybody know how to achieve that with a c# code
"cards": {
"en-US": [{
"sys": {
"type": "Link",
"linkType": "Entry",
"id": "id"
}
} ]
}
this is my coded
Cards = new Dictionary<string, List<Sys>>()
{
{ "en-US" , new List<Sys>{ new Sys { id = "7Ll4cezI6QMYsgIUwMCmSw", type = "Link", linkType = "Entry" } } }
}
and a sys class
public class Sys
{
public string id { get; set; }
public string type { get; set; }
public string linkType { get; set; }
}
but what im acheiving here is
"Cards":{"en-US":[{"id":"id","type":"Link","linkType":"Entry"}]}
and what i want is the "sys" that is not coming , any help
SysContainerclass with a single propertysys. Then your list should beList<SysContainer>