public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
BatchGetOnPremisesInstancesResponse response = new BatchGetOnPremisesInstancesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("instanceInfos", targetDepth))
{
var unmarshaller = new ListUnmarshaller<InstanceInfo, InstanceInfoUnmarshaller>(InstanceInfoUnmarshaller.Instance);
response.InstanceInfos = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}