public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
UpdateMaintenanceWindowResponse response = new UpdateMaintenanceWindowResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AllowUnassociatedTargets", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.AllowUnassociatedTargets = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Cutoff", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.Cutoff = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Duration", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.Duration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Enabled", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.Enabled = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Schedule", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Schedule = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("WindowId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.WindowId = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}