To add to what Richard has said, JSON data does not "magically" create classes for you, you need to construct a class with the appropriate properties that the JSON can be typed to. I used an
online JSON converter[
^] and generated this:
public class MyClass
{
public int employeeID { get; set; }
public int employeeName { get; set; }
public string departementCode { get; set; }
public string jobCode { get; set; }
public object ownerType { get; set; }
public string departementName { get; set; }
}
You would then use that as the type in your code:
ValueKind = MyClass : "{"employeeID":1222,"employeeName":0,"departementCode":"211","jobCode":"1221","ownerType":null,"departementName":"ahmed"}"