public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DisableEnhancedMonitoringResponse response = new DisableEnhancedMonitoringResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CurrentShardLevelMetrics", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.CurrentShardLevelMetrics = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DesiredShardLevelMetrics", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.DesiredShardLevelMetrics = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StreamName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.StreamName = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}