public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribePatchGroupStateResponse response = new DescribePatchGroupStateResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Instances", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.Instances = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InstancesWithFailedPatches", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.InstancesWithFailedPatches = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InstancesWithInstalledOtherPatches", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.InstancesWithInstalledOtherPatches = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InstancesWithInstalledPatches", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.InstancesWithInstalledPatches = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InstancesWithMissingPatches", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.InstancesWithMissingPatches = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InstancesWithNotApplicablePatches", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.InstancesWithNotApplicablePatches = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}