I have a JSON like
{
"myObject":{
"Difficult": true,
"Impossible": false
}
}
and a model like
public class Blas
{
public string something { get; set; }
public int somethinElse { get; set; }
public Dictionary<string, bool> myObject{ get; set; } //this is how I'm currently modeling the JSON
}
and when I use it I'm doing myObject["Difficult"];
but I need to do something like if(myObject.Difficult)..
Note to duplicate suggestion: The suggestion is irrelevant because as the title says, my question is regarding to model a JSON in C#, not converting. I can convert, but I need to improve my current modeling in c#.