public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetMaintenanceWindowExecutionResponse response = new GetMaintenanceWindowExecutionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("EndTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.EndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StartTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.StartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatusDetails", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.StatusDetails = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TaskIds", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.TaskIds = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("WindowExecutionId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.WindowExecutionId = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}