Based on this code in this discussion (How to build object hierarchy for serialization with json.net?), how would I initialize the JNotification and assign values to to JNotification which contains JPayload, JCustomData, JFilter?
public class JNotification
{
public string status { get; set; }
public JPayload payload = new JPayload();
public JFilter filter = new JFilter();
}
public class JPayload
{
public string title { get; set; }
public string message { get; set; }
public JCustomData customData = new JCustomData();
}
public class JCustomData
{
public string addType { get; set; }
public string addTitle { get; set; }
public string addMessage { get; set; }
public int addAppraiserId { get; set; }
public int addAppraisalId { get; set; }
public int addAppraisalCommentId { get; set; }
public int addAppraisalStatusHistoryId { get; set; }
}
public class JFilter
{
public int AppraiserId { get; set; }
}