public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetInstanceStateResponse response = new GetInstanceStateResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("state", targetDepth))
{
var unmarshaller = InstanceStateUnmarshaller.Instance;
response.State = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}