public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetDeployablePatchSnapshotForInstanceResponse response = new GetDeployablePatchSnapshotForInstanceResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("InstanceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.InstanceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SnapshotDownloadUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SnapshotDownloadUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SnapshotId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SnapshotId = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}