public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
CreateStageResponse response = new CreateStageResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("cacheClusterEnabled", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.CacheClusterEnabled = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("cacheClusterSize", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.CacheClusterSize = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("cacheClusterStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.CacheClusterStatus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("clientCertificateId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ClientCertificateId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("createdDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreatedDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("deploymentId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.DeploymentId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("documentationVersion", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.DocumentationVersion = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("lastUpdatedDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.LastUpdatedDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("methodSettings", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, MethodSetting, StringUnmarshaller, MethodSettingUnmarshaller>(StringUnmarshaller.Instance, MethodSettingUnmarshaller.Instance);
response.MethodSettings = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("stageName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.StageName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("variables", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
response.Variables = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}