I have json with only one type which including some properties
{"Agreement":{"agreementId":"1","CreatedOn":"2016-09-02T09:25:05","ModifiedOn":"2019-06-30T23:30:00.173"}}
I`m using Newtonsoft JsonConvert.
Is it possible to parse it to model like this?
public class Agreement
{
public int Id {get; set;}
public DateTime CreatedOn {get; set;}
public DateTime ModifiedOn {get; set;}
}
Now i must declare additional class, which contains this type
public class AgreementAdditional
{
public Agreement Agreement {get; set;}
}
May be its duplicate, but i cant google it correctly